Home
last modified time | relevance | path

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

/external/llvm-project/clang-tools-extra/clangd/
DHeaders.h68 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/
DBackgroundIndexLoader.cpp84 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()
DYAMLSerialization.cpp45 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()
DSerialization.cpp283 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()
DIndexAction.cpp81 Node.Flags |= IncludeGraphNode::SourceFlag::IsTU; in FileChanged()
DBackground.cpp342 It.second.Flags |= IncludeGraphNode::SourceFlag::HadErrors; in index()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DIndexActionTests.cpp30 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()
DSerializationTests.cpp191 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()
DBackgroundIndexTests.cpp43 return arg.Flags == IncludeGraphNode::SourceFlag::None && !arg.URI.empty() &&
48 return arg.Flags & IncludeGraphNode::SourceFlag::HadErrors;