Searched refs:IncludeGraphNode (Results 1 – 9 of 9) sorted by relevance
/external/llvm-project/clang-tools-extra/clangd/ |
D | Headers.h | 68 struct IncludeGraphNode { struct 86 using IncludeGraph = llvm::StringMap<IncludeGraphNode>; argument 88 inline IncludeGraphNode::SourceFlag operator|(IncludeGraphNode::SourceFlag A, 89 IncludeGraphNode::SourceFlag B) { 90 return static_cast<IncludeGraphNode::SourceFlag>(static_cast<uint8_t>(A) | 94 inline bool operator&(IncludeGraphNode::SourceFlag A, 95 IncludeGraphNode::SourceFlag B) { 99 inline IncludeGraphNode::SourceFlag & 100 operator|=(IncludeGraphNode::SourceFlag &A, IncludeGraphNode::SourceFlag B) {
|
/external/llvm-project/clang-tools-extra/clangd/index/ |
D | BackgroundIndexLoader.cpp | 84 const IncludeGraphNode &IGN = It.getValue(); in loadShard() 86 LS.CountReferences = IGN.Flags & IncludeGraphNode::SourceFlag::IsTU; in loadShard() 87 LS.HadErrors = IGN.Flags & IncludeGraphNode::SourceFlag::HadErrors; in loadShard()
|
D | YAMLSerialization.cpp | 45 llvm::Optional<clang::clangd::IncludeGraphNode> Source; 64 using clang::clangd::IncludeGraphNode; 323 NormalizedSourceFlag(IO &, IncludeGraphNode::SourceFlag O) { in NormalizedSourceFlag() 327 IncludeGraphNode::SourceFlag denormalize(IO &) { in denormalize() 328 return static_cast<IncludeGraphNode::SourceFlag>(Flag); in denormalize() 354 template <> struct MappingTraits<IncludeGraphNode> { 355 static void mapping(IO &IO, IncludeGraphNode &Node) { in mapping() 357 MappingNormalization<NormalizedSourceFlag, IncludeGraphNode::SourceFlag> in mapping() 391 MappingTraits<IncludeGraphNode>::mapping(IO, *Variant.Source); in mapping()
|
D | Serialization.cpp | 283 IncludeGraphNode readIncludeGraphNode(Reader &Data, in readIncludeGraphNode() 285 IncludeGraphNode IGN; in readIncludeGraphNode() 286 IGN.Flags = static_cast<IncludeGraphNode::SourceFlag>(Data.consume8()); in readIncludeGraphNode() 297 void writeIncludeGraphNode(const IncludeGraphNode &IGN, in writeIncludeGraphNode() 548 void visitStrings(IncludeGraphNode &IGN, const Callback &CB) { in visitStrings() 573 std::vector<IncludeGraphNode> Sources; in writeRIFF()
|
D | IndexAction.cpp | 81 Node.Flags |= IncludeGraphNode::SourceFlag::IsTU; in FileChanged()
|
D | Background.cpp | 342 It.second.Flags |= IncludeGraphNode::SourceFlag::HadErrors; in index()
|
/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | IndexActionTests.cpp | 30 MATCHER(IsTU, "") { return arg.Flags & IncludeGraphNode::SourceFlag::IsTU; } 42 ::testing::Matcher<const IncludeGraphNode &> 44 return ::testing::Field(&IncludeGraphNode::DirectIncludes, in IncludesAre() 60 std::map<std::string, const IncludeGraphNode &> toMap(const IncludeGraph &IG) { in toMap() 61 std::map<std::string, const IncludeGraphNode &> Nodes; in toMap()
|
D | SerializationTests.cpp | 191 EXPECT_EQ(IGNDeserialized.Flags, IncludeGraphNode::SourceFlag(1)); in TEST() 243 IncludeGraphNode IGN; in TEST() 247 IGN.Flags |= IncludeGraphNode::SourceFlag::IsTU; in TEST() 248 IGN.Flags |= IncludeGraphNode::SourceFlag::HadErrors; in TEST()
|
D | BackgroundIndexTests.cpp | 43 return arg.Flags == IncludeGraphNode::SourceFlag::None && !arg.URI.empty() && 48 return arg.Flags & IncludeGraphNode::SourceFlag::HadErrors;
|