Home
last modified time | relevance | path

Searched refs:CXSourceLocation (Results 1 – 25 of 34) sorted by relevance

12

/external/llvm-project/clang/tools/libclang/
DCXSourceLocation.cpp31 static bool isASTUnitSourceLocation(const CXSourceLocation &L) { in isASTUnitSourceLocation()
41 CXSourceLocation clang_getNullLocation() { in clang_getNullLocation()
42 CXSourceLocation Result = { { nullptr, nullptr }, 0 }; in clang_getNullLocation()
46 unsigned clang_equalLocations(CXSourceLocation loc1, CXSourceLocation loc2) { in clang_equalLocations()
57 CXSourceRange clang_getRange(CXSourceLocation begin, CXSourceLocation end) { in clang_getRange()
87 CXSourceLocation clang_getRangeStart(CXSourceRange range) { in clang_getRangeStart()
90 CXSourceLocation Result = { { range.ptr_data[0], nullptr }, 0 }; in clang_getRangeStart()
94 CXSourceLocation Result = { { range.ptr_data[0], range.ptr_data[1] }, in clang_getRangeStart()
99 CXSourceLocation clang_getRangeEnd(CXSourceRange range) { in clang_getRangeEnd()
102 CXSourceLocation Result = { { range.ptr_data[1], nullptr }, 0 }; in clang_getRangeEnd()
[all …]
DCXSourceLocation.h28 static inline CXSourceLocation
34 CXSourceLocation Result = { { &SM, &LangOpts, }, in translateSourceLocation()
40 static inline CXSourceLocation translateSourceLocation(ASTContext &Context, in translateSourceLocation()
65 static inline SourceLocation translateSourceLocation(CXSourceLocation L) { in translateSourceLocation()
DCXLoadedDiagnostic.cpp90 static CXSourceLocation makeLocation(const CXLoadedDiagnostic::Location *DLoc) { in makeLocation()
95 CXSourceLocation Loc = { { (void*) V, nullptr }, 0 }; in makeLocation()
99 CXSourceLocation CXLoadedDiagnostic::getLocation() const { in getLocation()
148 void CXLoadedDiagnostic::decodeLocation(CXSourceLocation location, in decodeLocation()
302 CXSourceLocation startLoc = makeLocation(Start); in readRange()
303 CXSourceLocation endLoc = makeLocation(End); in readRange()
DCXLoadedDiagnostic.h34 CXSourceLocation getLocation() const override;
66 static void decodeLocation(CXSourceLocation location,
DCIndexDiagnostic.cpp42 CXSourceLocation Loc;
44 CXDiagnosticCustomNoteImpl(StringRef Msg, CXSourceLocation L) in CXDiagnosticCustomNoteImpl()
54 CXSourceLocation getLocation() const override { return Loc; } in getLocation()
117 CXSourceLocation L; in emitDiagnosticMessage()
135 CXSourceLocation L; in emitNote()
372 CXSourceLocation clang_getDiagnosticLocation(CXDiagnostic Diag) { in clang_getDiagnosticLocation()
DCIndexDiagnostic.h65 virtual CXSourceLocation getLocation() const = 0;
126 CXSourceLocation getLocation() const override;
DRewrite.cpp27 void clang_CXRewriter_insertTextBefore(CXRewriter Rew, CXSourceLocation Loc, in clang_CXRewriter_insertTextBefore()
DCMakeLists.txt17 CXSourceLocation.cpp
30 CXSourceLocation.h
DCIndexInclusionStack.cpp27 SmallVector<CXSourceLocation, 10> InclusionStack; in getInclusions()
/external/clang/tools/libclang/
DCXSourceLocation.cpp31 static bool isASTUnitSourceLocation(const CXSourceLocation &L) { in isASTUnitSourceLocation()
43 CXSourceLocation clang_getNullLocation() { in clang_getNullLocation()
44 CXSourceLocation Result = { { nullptr, nullptr }, 0 }; in clang_getNullLocation()
48 unsigned clang_equalLocations(CXSourceLocation loc1, CXSourceLocation loc2) { in clang_equalLocations()
59 CXSourceRange clang_getRange(CXSourceLocation begin, CXSourceLocation end) { in clang_getRange()
89 CXSourceLocation clang_getRangeStart(CXSourceRange range) { in clang_getRangeStart()
92 CXSourceLocation Result = { { range.ptr_data[0], nullptr }, 0 }; in clang_getRangeStart()
96 CXSourceLocation Result = { { range.ptr_data[0], range.ptr_data[1] }, in clang_getRangeStart()
101 CXSourceLocation clang_getRangeEnd(CXSourceRange range) { in clang_getRangeEnd()
104 CXSourceLocation Result = { { range.ptr_data[1], nullptr }, 0 }; in clang_getRangeEnd()
[all …]
DCXSourceLocation.h29 static inline CXSourceLocation
35 CXSourceLocation Result = { { &SM, &LangOpts, }, in translateSourceLocation()
41 static inline CXSourceLocation translateSourceLocation(ASTContext &Context, in translateSourceLocation()
66 static inline SourceLocation translateSourceLocation(CXSourceLocation L) { in translateSourceLocation()
DCXLoadedDiagnostic.cpp93 static CXSourceLocation makeLocation(const CXLoadedDiagnostic::Location *DLoc) { in makeLocation()
98 CXSourceLocation Loc = { { (void*) V, nullptr }, 0 }; in makeLocation()
102 CXSourceLocation CXLoadedDiagnostic::getLocation() const { in getLocation()
151 void CXLoadedDiagnostic::decodeLocation(CXSourceLocation location, in decodeLocation()
305 CXSourceLocation startLoc = makeLocation(Start); in readRange()
306 CXSourceLocation endLoc = makeLocation(End); in readRange()
DCXLoadedDiagnostic.h35 CXSourceLocation getLocation() const override;
67 static void decodeLocation(CXSourceLocation location,
DCIndexDiagnostic.cpp45 CXSourceLocation Loc;
47 CXDiagnosticCustomNoteImpl(StringRef Msg, CXSourceLocation L) in CXDiagnosticCustomNoteImpl()
57 CXSourceLocation getLocation() const override { in getLocation()
124 CXSourceLocation L; in emitDiagnosticMessage()
146 CXSourceLocation L; in emitNote()
385 CXSourceLocation clang_getDiagnosticLocation(CXDiagnostic Diag) { in clang_getDiagnosticLocation()
DCIndexDiagnostic.h65 virtual CXSourceLocation getLocation() const = 0;
126 CXSourceLocation getLocation() const override;
DCMakeLists.txt17 CXSourceLocation.cpp
28 CXSourceLocation.h
DCIndexInclusionStack.cpp31 SmallVector<CXSourceLocation, 10> InclusionStack; in getInclusions()
DCXStoredDiagnostic.cpp44 CXSourceLocation CXStoredDiagnostic::getLocation() const { in getLocation()
/external/clang/include/clang-c/
DIndex.h370 } CXSourceLocation; typedef
387 CINDEX_LINKAGE CXSourceLocation clang_getNullLocation(void);
397 CINDEX_LINKAGE unsigned clang_equalLocations(CXSourceLocation loc1,
398 CXSourceLocation loc2);
404 CINDEX_LINKAGE CXSourceLocation clang_getLocation(CXTranslationUnit tu,
412 CINDEX_LINKAGE CXSourceLocation clang_getLocationForOffset(CXTranslationUnit tu,
419 CINDEX_LINKAGE int clang_Location_isInSystemHeader(CXSourceLocation location);
425 CINDEX_LINKAGE int clang_Location_isFromMainFile(CXSourceLocation location);
436 CINDEX_LINKAGE CXSourceRange clang_getRange(CXSourceLocation begin,
437 CXSourceLocation end);
[all …]
/external/llvm-project/clang/include/clang-c/
DIndex.h459 } CXSourceLocation; typedef
476 CINDEX_LINKAGE CXSourceLocation clang_getNullLocation(void);
486 CINDEX_LINKAGE unsigned clang_equalLocations(CXSourceLocation loc1,
487 CXSourceLocation loc2);
493 CINDEX_LINKAGE CXSourceLocation clang_getLocation(CXTranslationUnit tu,
500 CINDEX_LINKAGE CXSourceLocation clang_getLocationForOffset(CXTranslationUnit tu,
507 CINDEX_LINKAGE int clang_Location_isInSystemHeader(CXSourceLocation location);
513 CINDEX_LINKAGE int clang_Location_isFromMainFile(CXSourceLocation location);
524 CINDEX_LINKAGE CXSourceRange clang_getRange(CXSourceLocation begin,
525 CXSourceLocation end);
[all …]
DRewrite.h30 CINDEX_LINKAGE void clang_CXRewriter_insertTextBefore(CXRewriter Rew, CXSourceLocation Loc,
/external/llvm-project/clang/unittests/libclang/
DLibclangTest.cpp375 CXSourceLocation cxl; in TEST_F()
630 CXSourceLocation cxl; in TEST_F()
882 CXSourceLocation B = clang_getLocation(ClangTU, File, 1, 5); in TEST_F()
883 CXSourceLocation E = clang_getLocation(ClangTU, File, 1, 9); in TEST_F()
893 CXSourceLocation B = clang_getLocation(ClangTU, File, 1, 5); in TEST_F()
894 CXSourceLocation E = clang_getLocation(ClangTU, File, 1, 9); in TEST_F()
904 CXSourceLocation B = clang_getLocation(ClangTU, File, 1, 5); in TEST_F()
905 CXSourceLocation E = clang_getLocation(ClangTU, File, 1, 9); in TEST_F()
915 CXSourceLocation Loc = clang_getLocation(ClangTU, File, 1, 5); in TEST_F()
924 CXSourceLocation B = clang_getLocation(ClangTU, File, 1, 5); in TEST_F()
[all …]
/external/rust/crates/clang-sys/src/
Dlib.rs53 pub type CXInclusionVisitor = extern "C" fn(CXFile, *mut CXSourceLocation, c_uint, CXClientData);
1557 pub struct CXSourceLocation { struct
1562 default!(CXSourceLocation); argument
1848 pub fn clang_Location_isFromMainFile(location: CXSourceLocation) -> c_int;
1849 pub fn clang_Location_isInSystemHeader(location: CXSourceLocation) -> c_int;
1960 pub fn clang_equalLocations(left: CXSourceLocation, right: CXSourceLocation) -> c_uint;
2001 pub fn clang_getCursor(tu: CXTranslationUnit, location: CXSourceLocation) -> CXCursor;
2015 pub fn clang_getCursorLocation(cursor: CXCursor) -> CXSourceLocation;
2044 pub fn clang_getDiagnosticLocation(diagnostic: CXDiagnostic) -> CXSourceLocation;
2059 …pub fn clang_getExpansionLocation(location: CXSourceLocation, file: *mut CXFile, line: *mut c_uint…
[all …]
/external/llvm-project/llvm/utils/gn/secondary/clang/tools/libclang/
DBUILD.gn78 "CXSourceLocation.cpp",
79 "CXSourceLocation.h",
/external/llvm-project/clang/tools/c-index-test/
Dc-index-test.c802 CXSourceLocation Loc; in PrintCursor()
812 CXSourceLocation Loc = clang_getCursorLocation(Referenced); in PrintCursor()
995 CXSourceLocation Loc = clang_getCursorLocation(SpecializationOf); in PrintCursor()
1040 CXSourceLocation Loc = clang_getCursorLocation(overridden[I]); in PrintCursor()
1159 CXSourceLocation Loc = clang_getCursorLocation(Cursor); in GetCursorSource()
1214 CXSourceLocation start = clang_getRangeStart(range); in PrintDiagnostic()
1215 CXSourceLocation end = clang_getRangeEnd(range); in PrintDiagnostic()
1301 CXSourceLocation Loc = clang_getCursorLocation(Cursor); in FilteredPrintingVisitor()
1352 CXSourceLocation Loc; in FunctionScanVisitor()
1368 CXSourceLocation RefLoc in FunctionScanVisitor()
[all …]

12