Bug 1421768 - Fix overeager clang-tidy behaviour causing silent breakage in searchfox. r=me

This is an import of the change from https://github.com/mozsearch/mozsearch/pull/66
plus a correction in the README file. The change was reviewed in github.

MozReview-Commit-ID: A7gINlBubZ4
This commit is contained in:
Kartikaya Gupta 2017-11-30 16:52:51 -05:00
parent 4ba2eb0286
commit ef331d62ea
2 changed files with 9 additions and 9 deletions

View File

@ -500,7 +500,7 @@ public:
AutoSetContext Asc(this, D);
return Super::TraverseRecordDecl(D);
}
bool TraverseCxxRecordDecl(CXXRecordDecl *D) {
bool TraverseCXXRecordDecl(CXXRecordDecl *D) {
AutoSetContext Asc(this, D);
return Super::TraverseCXXRecordDecl(D);
}
@ -516,7 +516,7 @@ public:
}
return Super::TraverseFunctionDecl(D);
}
bool TraverseCxxMethodDecl(CXXMethodDecl *D) {
bool TraverseCXXMethodDecl(CXXMethodDecl *D) {
AutoSetContext Asc(this, D);
const FunctionDecl *Def;
// See TraverseFunctionDecl.
@ -525,7 +525,7 @@ public:
}
return Super::TraverseCXXMethodDecl(D);
}
bool TraverseCxxConstructorDecl(CXXConstructorDecl *D) {
bool TraverseCXXConstructorDecl(CXXConstructorDecl *D) {
AutoSetContext Asc(this, D);
const FunctionDecl *Def;
// See TraverseFunctionDecl.
@ -534,7 +534,7 @@ public:
}
return Super::TraverseCXXConstructorDecl(D);
}
bool TraverseCxxConversionDecl(CXXConversionDecl *D) {
bool TraverseCXXConversionDecl(CXXConversionDecl *D) {
AutoSetContext Asc(this, D);
const FunctionDecl *Def;
// See TraverseFunctionDecl.
@ -543,7 +543,7 @@ public:
}
return Super::TraverseCXXConversionDecl(D);
}
bool TraverseCxxDestructorDecl(CXXDestructorDecl *D) {
bool TraverseCXXDestructorDecl(CXXDestructorDecl *D) {
AutoSetContext Asc(this, D);
const FunctionDecl *Def;
// See TraverseFunctionDecl.
@ -1143,7 +1143,7 @@ public:
return true;
}
bool VisitCxxConstructExpr(CXXConstructExpr *E) {
bool VisitCXXConstructExpr(CXXConstructExpr *E) {
SourceLocation Loc = E->getLocStart();
normalizeLocation(&Loc);
if (!isInterestingLocation(Loc)) {
@ -1313,7 +1313,7 @@ public:
return true;
}
bool VisitCxxConstructorDecl(CXXConstructorDecl *D) {
bool VisitCXXConstructorDecl(CXXConstructorDecl *D) {
if (!isInterestingLocation(D->getLocation())) {
return true;
}
@ -1356,7 +1356,7 @@ public:
return true;
}
bool VisitCxxDependentScopeMemberExpr(CXXDependentScopeMemberExpr *E) {
bool VisitCXXDependentScopeMemberExpr(CXXDependentScopeMemberExpr *E) {
SourceLocation Loc = E->getMemberLoc();
normalizeLocation(&Loc);
if (!isInterestingLocation(Loc)) {

View File

@ -1,7 +1,7 @@
This clang plugin code generates a JSON file for each compiler input
file. The JSON file contains information about the C++ symbols that
are referenced by the input file. The data is eventually consumed by
Searchfox. See https://github.com/bill-mccloskey/mozsearch for more
Searchfox. See https://github.com/mozsearch/mozsearch for more
information.
This plugin is enabled with the --enable-clang-plugin and