forked from OSchip/llvm-project
From Justin Handville:
"The ExpectedStr search was starting at the end of the comment string. This patch starts the search at the beginning of the comment string. After applying this patch, clang -parse-ast-check on negative test case source files worked as expected." llvm-svn: 42012
This commit is contained in:
parent
ac81722ff6
commit
aadfe2f973
|
@ -51,7 +51,7 @@ static void FindDiagnostics(const std::string &Comment,
|
|||
const char * const ExpectedStr) {
|
||||
// Find all expected diagnostics
|
||||
typedef std::string::size_type size_type;
|
||||
size_type ColNo = std::string::npos;
|
||||
size_type ColNo = 0;
|
||||
|
||||
for (;;) {
|
||||
ColNo = Comment.find(ExpectedStr, ColNo);
|
||||
|
|
Loading…
Reference in New Issue