aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Frontend/ResolveLocation.cpp3
-rw-r--r--lib/Index/ASTLocation.cpp (renamed from lib/AST/ASTLocation.cpp)5
-rw-r--r--lib/Index/DeclReferenceMap.cpp (renamed from lib/AST/DeclReferenceMap.cpp)7
3 files changed, 9 insertions, 6 deletions
diff --git a/lib/Frontend/ResolveLocation.cpp b/lib/Frontend/ResolveLocation.cpp
index c2d32bbc90..9fbae30a48 100644
--- a/lib/Frontend/ResolveLocation.cpp
+++ b/lib/Frontend/ResolveLocation.cpp
@@ -13,13 +13,14 @@
//===----------------------------------------------------------------------===//
#include "clang/Frontend/Utils.h"
-#include "clang/AST/ASTLocation.h"
+#include "clang/Index/ASTLocation.h"
#include "clang/AST/DeclVisitor.h"
#include "clang/AST/StmtVisitor.h"
#include "clang/Lex/Lexer.h"
#include "clang/Basic/SourceManager.h"
#include "llvm/Support/Compiler.h"
using namespace clang;
+using namespace idx;
namespace {
diff --git a/lib/AST/ASTLocation.cpp b/lib/Index/ASTLocation.cpp
index e72acf0793..4b95d9d554 100644
--- a/lib/AST/ASTLocation.cpp
+++ b/lib/Index/ASTLocation.cpp
@@ -1,4 +1,4 @@
-//===--- ASTLocation.h - A <Decl, Stmt> pair --------------------*- C++ -*-===//
+//===--- ASTLocation.cpp - A <Decl, Stmt> pair ------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -11,11 +11,12 @@
//
//===----------------------------------------------------------------------===//
-#include "clang/AST/ASTLocation.h"
+#include "clang/Index/ASTLocation.h"
#include "clang/AST/Decl.h"
#include "clang/AST/Stmt.h"
#include "clang/AST/Expr.h"
using namespace clang;
+using namespace idx;
static bool isContainedInStatement(Stmt *Node, Stmt *Parent) {
assert(Node && Parent && "Passed null Node or Parent");
diff --git a/lib/AST/DeclReferenceMap.cpp b/lib/Index/DeclReferenceMap.cpp
index 41f53fdd52..841d7fb2fb 100644
--- a/lib/AST/DeclReferenceMap.cpp
+++ b/lib/Index/DeclReferenceMap.cpp
@@ -1,4 +1,4 @@
-//===--- DeclReferenceMap.h - Map Decls to their references -----*- C++ -*-===//
+//===--- DeclReferenceMap.cpp - Map Decls to their references ---*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -12,14 +12,15 @@
//
//===----------------------------------------------------------------------===//
-#include "clang/AST/DeclReferenceMap.h"
+#include "clang/Index/DeclReferenceMap.h"
+#include "clang/Index/ASTLocation.h"
#include "clang/AST/Decl.h"
#include "clang/AST/Stmt.h"
-#include "clang/AST/ASTLocation.h"
#include "clang/AST/DeclVisitor.h"
#include "clang/AST/StmtVisitor.h"
#include "llvm/Support/Compiler.h"
using namespace clang;
+using namespace idx;
namespace {