forked from OSchip/llvm-project
[clang-tidy] Test commit (playing with git-svn)
llvm-svn: 253203
This commit is contained in:
parent
da44677082
commit
58fe57a92b
|
@ -114,9 +114,8 @@ public:
|
|||
SmallVector<std::pair<SourceLocation, bool>, 4> FixLocations;
|
||||
{
|
||||
auto Level = static_cast<DiagnosticsEngine::Level>(Error.DiagLevel);
|
||||
DiagnosticBuilder Diag =
|
||||
Diags.Report(Loc, Diags.getCustomDiagID(Level, "%0 [%1]"))
|
||||
<< Message.Message << Error.CheckName;
|
||||
auto Diag = Diags.Report(Loc, Diags.getCustomDiagID(Level, "%0 [%1]"))
|
||||
<< Message.Message << Error.CheckName;
|
||||
for (const tooling::Replacement &Fix : Error.Fix) {
|
||||
SourceLocation FixLoc = getLocation(Fix.getFilePath(), Fix.getOffset());
|
||||
SourceLocation FixEndLoc = FixLoc.getLocWithOffset(Fix.getLength());
|
||||
|
|
|
@ -132,7 +132,7 @@ static bool ConsumeNegativeIndicator(StringRef &GlobList) {
|
|||
static llvm::Regex ConsumeGlob(StringRef &GlobList) {
|
||||
StringRef Glob = GlobList.substr(0, GlobList.find(',')).trim();
|
||||
GlobList = GlobList.substr(Glob.size() + 1);
|
||||
llvm::SmallString<128> RegexText("^");
|
||||
SmallString<128> RegexText("^");
|
||||
StringRef MetaChars("()^$|*+?.[]\\{}");
|
||||
for (char C : Glob) {
|
||||
if (C == '*')
|
||||
|
|
Loading…
Reference in New Issue