Home
last modified time | relevance | path

Searched refs:DeclRange (Results 1 – 6 of 6) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/unittests/
DSymbolCollectorTests.cpp79 MATCHER_P(DeclRange, Pos, "") {
412 AllOf(QName("Tmpl"), DeclRange(Header.range()), in TEST_F()
414 AllOf(QName("Tmpl"), DeclRange(Header.range("specdecl")), in TEST_F()
416 AllOf(QName("Tmpl"), DeclRange(Header.range("partspecdecl")), in TEST_F()
418 AllOf(QName("Tmpl::x"), DeclRange(Header.range("xdecl")), in TEST_F()
462 DeclRange(Header.range("specdecl")), in TEST_F()
465 DeclRange(Header.range("partspecdecl")), in TEST_F()
468 DeclRange(Header.range("parampack")), in TEST_F()
471 DeclRange(Header.range("parampackpartial")), in TEST_F()
474 DeclRange(Header.range("parampacknontype")), in TEST_F()
[all …]
DXRefsTests.cpp51 MATCHER(DeclRange, "") {
1170 UnorderedPointwise(DeclRange(), T.ranges())); in TEST()
1500 UnorderedPointwise(DeclRange(), Code.ranges(Label))) in TEST()
/external/llvm-project/clang/lib/Tooling/Refactoring/
DASTSelection.cpp84 const SourceRange DeclRange = D->getSourceRange(); in TraverseDecl() local
87 if (DeclRange.getBegin().isMacroID() && !DeclRange.getEnd().isMacroID()) in TraverseDecl()
88 FileLoc = DeclRange.getEnd(); in TraverseDecl()
90 FileLoc = SM.getSpellingLoc(DeclRange.getBegin()); in TraverseDecl()
101 if (DeclRange.getEnd().isValid() && in TraverseDecl()
104 DeclRange.getEnd())) { in TraverseDecl()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DIsolateDeclarationCheck.cpp169 SourceRange DeclRange(DS->getBeginLoc(), Start); in declRanges() local
170 if (DeclRange.isInvalid() || isMacroID(DeclRange)) in declRanges()
175 Slices.emplace_back(DeclRange); in declRanges()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DLoopConvertCheck.h43 void getAliasRange(SourceManager &SM, SourceRange &DeclRange);
/external/llvm-project/clang-tools-extra/clangd/
DXRefs.cpp1350 const auto DeclRange = in declToHierarchyItem() local
1352 if (!DeclRange) in declToHierarchyItem()
1372 HI.range = Range{sourceLocToPosition(SM, DeclRange->getBegin()), in declToHierarchyItem()
1373 sourceLocToPosition(SM, DeclRange->getEnd())}; in declToHierarchyItem()