aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/CIndex/CIndexUSRs.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/CIndex/CIndexUSRs.cpp b/tools/CIndex/CIndexUSRs.cpp
index edf3406356..5766b21d86 100644
--- a/tools/CIndex/CIndexUSRs.cpp
+++ b/tools/CIndex/CIndexUSRs.cpp
@@ -12,11 +12,9 @@
//===----------------------------------------------------------------------===//
#include "CIndexer.h"
+#include "clang/AST/DeclVisitor.h"
#include "llvm/ADT/SmallString.h"
-#include "llvm/Support/raw_ostream.h";
-#include "clang/AST/DeclVisitor.h";
-
-extern "C" {
+#include "llvm/Support/raw_ostream.h"
// Some notes on CXEntity:
//
@@ -63,7 +61,9 @@ static inline CXEntity MakeEntity(CXIndex CIdx, const Entity &E) {
static inline Program &GetProgram(CXIndex CIdx) {
return ((CIndexer*) CIdx)->getProgram();
}
-
+
+extern "C" {
+
/// clang_getDeclaration() maps from a CXEntity to the matching CXDecl (if any)
/// in a specified translation unit.
CXDecl clang_getDeclaration(CXEntity CE, CXTranslationUnit TU) {