Skip to content

Commit

Permalink
Index() -> Run().
Browse files Browse the repository at this point in the history
  • Loading branch information
mjessome committed Jan 13, 2014
1 parent 8fb6d6c commit 187ea3a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ClangScope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ int main(int argc, const char *argv[]) {
}
CrossReference CrossRef("clscope.db");
Index = new Indexer(Path, CrossRef);
Index->Index();
Index->Run();
return 0;
}
2 changes: 1 addition & 1 deletion CrossReference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ unsigned CrossReference::AddFile(std::string FileName, std::string CmdLine) {
}

void CrossReference::StartNewFile(std::string FileName, std::string CmdLine) {
LOG(1, "New File: " << Filendme << std::endl);
LOG(1, "New File: " << FileName << std::endl);
if ((TUCount % 5) == 0) { // Transaction every 5th file
if (CurrentFile) {
EndTransaction();
Expand Down
2 changes: 1 addition & 1 deletion Indexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ bool Indexer::OpenCompilationDatabase() {
return true;
}

bool Indexer::Index() {
bool Indexer::Run() {
if (!OpenCompilationDatabase()) return false;

ClangTool Tool(*CompilationDb, Files);
Expand Down
2 changes: 1 addition & 1 deletion Indexer.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ class Indexer {
Indexer(std::string Path, CrossReference &CrossRef);
~Indexer();

bool Index();
bool Run();
};

0 comments on commit 187ea3a

Please sign in to comment.