diff options
Diffstat (limited to 'tools/libclang/CXSourceLocation.h')
-rw-r--r-- | tools/libclang/CXSourceLocation.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/libclang/CXSourceLocation.h b/tools/libclang/CXSourceLocation.h index 6c5e858..f97ac1f 100644 --- a/tools/libclang/CXSourceLocation.h +++ b/tools/libclang/CXSourceLocation.h @@ -15,9 +15,9 @@ #define LLVM_CLANG_CXSOURCELOCATION_H #include "clang-c/Index.h" -#include "clang/Basic/SourceLocation.h" -#include "clang/Basic/LangOptions.h" #include "clang/AST/ASTContext.h" +#include "clang/Basic/LangOptions.h" +#include "clang/Basic/SourceLocation.h" namespace clang { @@ -32,7 +32,7 @@ translateSourceLocation(const SourceManager &SM, const LangOptions &LangOpts, if (Loc.isInvalid()) clang_getNullLocation(); - CXSourceLocation Result = { { (void*) &SM, (void*) &LangOpts, }, + CXSourceLocation Result = { { &SM, &LangOpts, }, Loc.getRawEncoding() }; return Result; } |