/external/llvm-project/clang/include/clang/Lex/ |
D | Pragma.h | 65 class PragmaHandler { 69 PragmaHandler() = default; 70 explicit PragmaHandler(StringRef name) : Name(name) {} in PragmaHandler() function 71 virtual ~PragmaHandler(); 84 class EmptyPragmaHandler : public PragmaHandler { 96 class PragmaNamespace : public PragmaHandler { 99 llvm::StringMap<std::unique_ptr<PragmaHandler>> Handlers; 102 explicit PragmaNamespace(StringRef Name) : PragmaHandler(Name) {} in PragmaNamespace() 108 PragmaHandler *FindHandler(StringRef Name, 112 void AddPragma(PragmaHandler *Handler); [all …]
|
D | Preprocessor.h | 76 class PragmaHandler; variable 1208 void AddPragmaHandler(StringRef Namespace, PragmaHandler *Handler); 1209 void AddPragmaHandler(PragmaHandler *Handler) { in AddPragmaHandler() 1218 void RemovePragmaHandler(StringRef Namespace, PragmaHandler *Handler); 1219 void RemovePragmaHandler(PragmaHandler *Handler) { in RemovePragmaHandler() 2413 using PragmaHandlerRegistry = llvm::Registry<PragmaHandler>;
|
/external/clang/include/clang/Lex/ |
D | Pragma.h | 59 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 …]
|
D | Preprocessor.h | 51 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/ |
D | Pragma.cpp | 34 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 …]
|
D | Preprocessor.cpp | 57 template class llvm::Registry<clang::PragmaHandler>;
|
/external/llvm-project/clang/lib/Lex/ |
D | Pragma.cpp | 58 PragmaHandler::~PragmaHandler() = default; 64 EmptyPragmaHandler::EmptyPragmaHandler(StringRef Name) : PragmaHandler(Name) {} in EmptyPragmaHandler() 78 PragmaHandler *PragmaNamespace::FindHandler(StringRef Name, in FindHandler() 91 void PragmaNamespace::AddPragma(PragmaHandler *Handler) { in AddPragma() 97 void PragmaNamespace::RemovePragmaHandler(PragmaHandler *Handler) { in RemovePragmaHandler() 113 PragmaHandler *Handler in HandlePragma() 896 PragmaHandler *Handler) { in AddPragmaHandler() 904 if (PragmaHandler *Existing = PragmaHandlers->FindHandler(Namespace)) { in AddPragmaHandler() 927 PragmaHandler *Handler) { in RemovePragmaHandler() 932 PragmaHandler *Existing = PragmaHandlers->FindHandler(Namespace); in RemovePragmaHandler() [all …]
|
/external/clang/lib/Parse/ |
D | ParsePragma.cpp | 28 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/llvm-project/clang/lib/Parse/ |
D | ParsePragma.cpp | 27 struct PragmaAlignHandler : public PragmaHandler { 28 explicit PragmaAlignHandler() : PragmaHandler("align") {} in PragmaAlignHandler() 33 struct PragmaGCCVisibilityHandler : public PragmaHandler { 34 explicit PragmaGCCVisibilityHandler() : PragmaHandler("visibility") {} in PragmaGCCVisibilityHandler() 39 struct PragmaOptionsHandler : public PragmaHandler { 40 explicit PragmaOptionsHandler() : PragmaHandler("options") {} in PragmaOptionsHandler() 45 struct PragmaPackHandler : public PragmaHandler { 46 explicit PragmaPackHandler() : PragmaHandler("pack") {} in PragmaPackHandler() 51 struct PragmaClangSectionHandler : public PragmaHandler { 53 : PragmaHandler("section"), Actions(S) {} in PragmaClangSectionHandler() [all …]
|
/external/llvm-project/clang/include/clang/Parse/ |
D | Parser.h | 34 class PragmaHandler; variable 170 std::unique_ptr<PragmaHandler> AlignHandler; 171 std::unique_ptr<PragmaHandler> GCCVisibilityHandler; 172 std::unique_ptr<PragmaHandler> OptionsHandler; 173 std::unique_ptr<PragmaHandler> PackHandler; 174 std::unique_ptr<PragmaHandler> MSStructHandler; 175 std::unique_ptr<PragmaHandler> UnusedHandler; 176 std::unique_ptr<PragmaHandler> WeakHandler; 177 std::unique_ptr<PragmaHandler> RedefineExtnameHandler; 178 std::unique_ptr<PragmaHandler> FPContractHandler; [all …]
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 33 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/ |
D | AnnotateFunctions.cpp | 58 class PragmaAnnotateHandler : public PragmaHandler { 60 PragmaAnnotateHandler() : PragmaHandler("enable_annotate") { } in PragmaAnnotateHandler()
|
/external/llvm-project/clang/examples/AnnotateFunctions/ |
D | AnnotateFunctions.cpp | 58 class PragmaAnnotateHandler : public PragmaHandler { 60 PragmaAnnotateHandler() : PragmaHandler("enable_annotate") { } in PragmaAnnotateHandler()
|
/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | SymbolCollectorTests.cpp | 197 CommentHandler *PragmaHandler) in SymbolIndexActionFactory() argument 198 : COpts(std::move(COpts)), PragmaHandler(PragmaHandler) {} in SymbolIndexActionFactory() 205 CommentHandler *PragmaHandler) in create() argument 207 PragmaHandler(PragmaHandler) {} in create() 211 if (PragmaHandler) in create() 212 CI.getPreprocessor().addCommentHandler(PragmaHandler); in create() 226 CommentHandler *PragmaHandler; in create() member in clang::clangd::__anonea11663d0111::SymbolIndexActionFactory::create::IndexAction 234 PragmaHandler); in create() 239 CommentHandler *PragmaHandler; member in clang::clangd::__anonea11663d0111::SymbolIndexActionFactory 260 CollectorOpts, PragmaHandler.get()); [all …]
|
/external/llvm-project/clang-tools-extra/clangd/index/ |
D | IndexAction.cpp | 139 PragmaHandler(collectIWYUHeaderMaps(this->Includes.get())) { in IndexAction() 151 CI.getPreprocessor().addCommentHandler(PragmaHandler.get()); in CreateASTConsumer() 200 std::unique_ptr<CommentHandler> PragmaHandler; member in clang::clangd::__anonae7423280111::IndexAction
|
/external/clang/docs/ |
D | ClangPlugins.rst | 49 Plugins can also define pragmas by declaring a ``PragmaHandler`` and 55 class ExamplePragmaHandler : public PragmaHandler { 57 ExamplePragmaHandler() : PragmaHandler("example_pragma") { }
|
/external/llvm-project/clang/docs/ |
D | ClangPlugins.rst | 49 Plugins can also define pragmas by declaring a ``PragmaHandler`` and 55 class ExamplePragmaHandler : public PragmaHandler { 57 ExamplePragmaHandler() : PragmaHandler("example_pragma") { }
|
/external/clang/lib/Frontend/ |
D | PrintPreprocessedOutput.cpp | 573 struct UnknownPragmaHandler : public PragmaHandler {
|
/external/llvm-project/clang/lib/Frontend/ |
D | PrintPreprocessedOutput.cpp | 656 struct UnknownPragmaHandler : public PragmaHandler {
|