Home
last modified time | relevance | path

Searched refs:PragmaHandler (Results 1 – 9 of 9) sorted by relevance

/external/clang/include/clang/Lex/
DPragma.h59 class PragmaHandler {
62 explicit PragmaHandler(StringRef name) : Name(name) {} in PragmaHandler() function
63 PragmaHandler() {} in PragmaHandler() function
64 virtual ~PragmaHandler();
77 class EmptyPragmaHandler : public PragmaHandler {
89 class PragmaNamespace : public PragmaHandler {
93 llvm::StringMap<PragmaHandler*> Handlers;
95 explicit PragmaNamespace(StringRef Name) : PragmaHandler(Name) {} in PragmaNamespace()
102 PragmaHandler *FindHandler(StringRef Name,
107 void AddPragma(PragmaHandler *Handler);
[all …]
DPreprocessor.h51 class PragmaHandler; variable
942 void AddPragmaHandler(StringRef Namespace, PragmaHandler *Handler);
943 void AddPragmaHandler(PragmaHandler *Handler) { in AddPragmaHandler()
952 void RemovePragmaHandler(StringRef Namespace, PragmaHandler *Handler);
953 void RemovePragmaHandler(PragmaHandler *Handler) { in RemovePragmaHandler()
1955 typedef llvm::Registry<PragmaHandler> PragmaHandlerRegistry;
1959 extern template class llvm::Registry<clang::PragmaHandler>;
/external/clang/lib/Lex/
DPragma.cpp34 PragmaHandler::~PragmaHandler() { in ~PragmaHandler()
41 EmptyPragmaHandler::EmptyPragmaHandler(StringRef Name) : PragmaHandler(Name) {} in EmptyPragmaHandler()
59 PragmaHandler *PragmaNamespace::FindHandler(StringRef Name, in FindHandler()
61 if (PragmaHandler *Handler = Handlers.lookup(Name)) in FindHandler()
66 void PragmaNamespace::AddPragma(PragmaHandler *Handler) { in AddPragma()
72 void PragmaNamespace::RemovePragmaHandler(PragmaHandler *Handler) { in RemovePragmaHandler()
86 PragmaHandler *Handler in HandlePragma()
730 PragmaHandler *Handler) { in AddPragmaHandler()
738 if (PragmaHandler *Existing = PragmaHandlers->FindHandler(Namespace)) { in AddPragmaHandler()
761 PragmaHandler *Handler) { in RemovePragmaHandler()
[all …]
DPreprocessor.cpp57 template class llvm::Registry<clang::PragmaHandler>;
/external/clang/lib/Parse/
DParsePragma.cpp28 struct PragmaAlignHandler : public PragmaHandler {
29 explicit PragmaAlignHandler() : PragmaHandler("align") {} in PragmaAlignHandler()
34 struct PragmaGCCVisibilityHandler : public PragmaHandler {
35 explicit PragmaGCCVisibilityHandler() : PragmaHandler("visibility") {} in PragmaGCCVisibilityHandler()
40 struct PragmaOptionsHandler : public PragmaHandler {
41 explicit PragmaOptionsHandler() : PragmaHandler("options") {} in PragmaOptionsHandler()
46 struct PragmaPackHandler : public PragmaHandler {
47 explicit PragmaPackHandler() : PragmaHandler("pack") {} in PragmaPackHandler()
52 struct PragmaMSStructHandler : public PragmaHandler {
53 explicit PragmaMSStructHandler() : PragmaHandler("ms_struct") {} in PragmaMSStructHandler()
[all …]
/external/clang/include/clang/Parse/
DParser.h33 class PragmaHandler; variable
151 std::unique_ptr<PragmaHandler> AlignHandler;
152 std::unique_ptr<PragmaHandler> GCCVisibilityHandler;
153 std::unique_ptr<PragmaHandler> OptionsHandler;
154 std::unique_ptr<PragmaHandler> PackHandler;
155 std::unique_ptr<PragmaHandler> MSStructHandler;
156 std::unique_ptr<PragmaHandler> UnusedHandler;
157 std::unique_ptr<PragmaHandler> WeakHandler;
158 std::unique_ptr<PragmaHandler> RedefineExtnameHandler;
159 std::unique_ptr<PragmaHandler> FPContractHandler;
[all …]
/external/clang/examples/AnnotateFunctions/
DAnnotateFunctions.cpp58 class PragmaAnnotateHandler : public PragmaHandler {
60 PragmaAnnotateHandler() : PragmaHandler("enable_annotate") { } in PragmaAnnotateHandler()
/external/clang/docs/
DClangPlugins.rst49 Plugins can also define pragmas by declaring a ``PragmaHandler`` and
55 class ExamplePragmaHandler : public PragmaHandler {
57 ExamplePragmaHandler() : PragmaHandler("example_pragma") { }
/external/clang/lib/Frontend/
DPrintPreprocessedOutput.cpp573 struct UnknownPragmaHandler : public PragmaHandler {