Searched refs:DirectiveTree (Results 1 – 9 of 9) sorted by relevance
| /llvm-project-15.0.7/clang-tools-extra/pseudo/lib/ |
| H A D | DirectiveTree.cpp | 48 llvm::Optional<DirectiveTree::Directive> parse(DirectiveTree *Tree, in parse() 146 DirectiveTree DirectiveTree::parse(const TokenStream &Code) { in parse() 147 DirectiveTree Result; in parse() 178 case DirectiveTree::Chunk::K_Empty: in dump() 180 case DirectiveTree::Chunk::K_Code: in dump() 201 OSTREAM_DUMP(DirectiveTree) 202 OSTREAM_DUMP(DirectiveTree::Chunk) 203 OSTREAM_DUMP(DirectiveTree::Directive) 205 OSTREAM_DUMP(DirectiveTree::Code) 278 Score walk(DirectiveTree &M) { in walk() [all …]
|
| H A D | CMakeLists.txt | 9 DirectiveTree.cpp
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/unittests/ |
| H A D | DirectiveTreeTest.cpp | 28 using Chunk = DirectiveTree::Chunk; 49 TEST(DirectiveTree, Parse) { in TEST() argument 68 DirectiveTree PP = DirectiveTree::parse(S); in TEST() 105 TEST(DirectiveTree, ParseUgly) { in TEST() argument 115 DirectiveTree PP = DirectiveTree::parse(S); in TEST() 127 TEST(DirectiveTree, ParseBroken) { in TEST() argument 136 DirectiveTree PP = DirectiveTree::parse(S); in TEST() 157 TEST(DirectiveTree, ChooseBranches) { in TEST() argument 307 DirectiveTree Tree = DirectiveTree::parse(S); in TEST() 341 DirectiveTree Tree = DirectiveTree::parse(S); in TEST() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/include/clang-pseudo/ |
| H A D | DirectiveTree.h | 58 struct DirectiveTree { struct 78 std::vector<std::pair<Directive, DirectiveTree>> Branches; argument 93 static DirectiveTree parse(const TokenStream &); argument 101 llvm::raw_ostream &operator<<(llvm::raw_ostream &, const DirectiveTree &); 102 llvm::raw_ostream &operator<<(llvm::raw_ostream &, const DirectiveTree::Chunk &); 103 llvm::raw_ostream &operator<<(llvm::raw_ostream &, const DirectiveTree::Code &); 105 const DirectiveTree::Directive &); 107 const DirectiveTree::Conditional &); 125 void chooseConditionalBranches(DirectiveTree &, const TokenStream &Code); 129 class DirectiveTree::Chunk {
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/benchmarks/ |
| H A D | Benchmark.cpp | 77 auto DirectiveStructure = DirectiveTree::parse(RawStream); in lexAndPreprocess() 109 auto DirectiveStructure = DirectiveTree::parse(RawStream); in preprocess()
|
| /llvm-project-15.0.7/llvm/utils/gn/secondary/clang-tools-extra/pseudo/lib/ |
| H A D | BUILD.gn | 13 "DirectiveTree.cpp",
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/fuzzer/ |
| H A D | Fuzzer.cpp | 36 auto DirectiveStructure = DirectiveTree::parse(RawStream); in operator ()()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | SemanticSelection.cpp | 184 auto DirectiveStructure = clang::pseudo::DirectiveTree::parse(OrigStream); in getFoldingRanges()
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/tool/ |
| H A D | ClangPseudo.cpp | 114 auto DirectiveStructure = clang::pseudo::DirectiveTree::parse(*RawStream); in main()
|