[cfe-commits] r93237 - /cfe/trunk/tools/CIndex/CIndexUSRs.cpp

Benjamin Kramer benny.kra at googlemail.com
Tue Jan 12 03:32:40 PST 2010


Author: d0k
Date: Tue Jan 12 05:32:40 2010
New Revision: 93237

URL: http://llvm.org/viewvc/llvm-project?rev=93237&view=rev
Log:
Remove trailing semicolons and silence MSVC warning about C linkage.

warning C4190: 'GetEntity' has C-linkage specified, but returns UDT
'clang::idx::Entity' which is incompatible with C

Modified:
    cfe/trunk/tools/CIndex/CIndexUSRs.cpp

Modified: cfe/trunk/tools/CIndex/CIndexUSRs.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/CIndex/CIndexUSRs.cpp?rev=93237&r1=93236&r2=93237&view=diff

==============================================================================
--- cfe/trunk/tools/CIndex/CIndexUSRs.cpp (original)
+++ cfe/trunk/tools/CIndex/CIndexUSRs.cpp Tue Jan 12 05:32:40 2010
@@ -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 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) {





More information about the cfe-commits mailing list