blob: 7f30caf9648fc75e1d47cb7ed8f0167c209699e8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
====================Apache-2.0 WITH LLVM-exception====================
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
====================Apache-2.0 WITH LLVM-exception====================
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
====================Apache-2.0 WITH LLVM-exception====================
|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|
|* Exceptions. *|
|* See https://llvm.org/LICENSE.txt for license information. *|
====================Apache-2.0 WITH LLVM-exception====================
|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *|
====================COPYRIGHT====================
ASTUnit *TU = getCursorASTUnit(C);
FileID MainID = TU->getSourceManager().getMainFileID();
SourceLocation Start = TU->getSourceManager().getLocForStartOfFile(MainID);
====================COPYRIGHT====================
ASTUnit *TU = getCursorASTUnit(C);
SourceRange Range = cxcursor::getCursorMacroExpansion(C).getSourceRange();
return TU->mapRangeFromPreamble(Range);
====================COPYRIGHT====================
CXCursor PC = clang_getCursorSemanticParent(C);
CXType PT = clang_getCursorType(PC);
long long Error = validateFieldParentType(PC,PT);
====================COPYRIGHT====================
CXSourceLocation CXLoc = clang_getCursorLocation(C);
SourceLocation Loc = cxloc::translateSourceLocation(CXLoc);
return cxloc::translateSourceRange(Ctx, Loc);
|