Mercurial > hg > CbC > CbC_llvm
comparison clang-tools-extra/clangd/ASTSignals.h @ 252:1f2b6ac9f198 llvm-original
LLVM16-1
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Aug 2023 09:04:13 +0900 |
parents | 79ff65ed7e25 |
children |
comparison
equal
deleted
inserted
replaced
237:c80f45b162ad | 252:1f2b6ac9f198 |
---|---|
8 | 8 |
9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_ASTSIGNALS_H | 9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_ASTSIGNALS_H |
10 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_ASTSIGNALS_H | 10 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_ASTSIGNALS_H |
11 | 11 |
12 #include "ParsedAST.h" | 12 #include "ParsedAST.h" |
13 #include "index/Symbol.h" | |
13 #include "index/SymbolID.h" | 14 #include "index/SymbolID.h" |
14 #include "llvm/ADT/DenseMap.h" | 15 #include "llvm/ADT/DenseMap.h" |
15 #include "llvm/ADT/StringMap.h" | 16 #include "llvm/ADT/StringMap.h" |
16 | 17 |
17 namespace clang { | 18 namespace clang { |
27 /// Number of occurrences of each symbol present in the file. | 28 /// Number of occurrences of each symbol present in the file. |
28 llvm::DenseMap<SymbolID, unsigned> ReferencedSymbols; | 29 llvm::DenseMap<SymbolID, unsigned> ReferencedSymbols; |
29 /// Namespaces whose symbols are used in the file, and the number of such | 30 /// Namespaces whose symbols are used in the file, and the number of such |
30 /// distinct symbols. | 31 /// distinct symbols. |
31 llvm::StringMap<unsigned> RelatedNamespaces; | 32 llvm::StringMap<unsigned> RelatedNamespaces; |
33 /// Preferred preprocessor directive to use for inclusions by the file. | |
34 Symbol::IncludeDirective InsertionDirective = | |
35 Symbol::IncludeDirective::Include; | |
32 | 36 |
33 static ASTSignals derive(const ParsedAST &AST); | 37 static ASTSignals derive(const ParsedAST &AST); |
34 }; | 38 }; |
35 | 39 |
36 } // namespace clangd | 40 } // namespace clangd |