]> granicus.if.org Git - clang/commit
Build ASTs before relexing the file. This avoids having comment finding mutate the
authorChris Lattner <sabre@nondot.org>
Fri, 10 Aug 2007 18:27:41 +0000 (18:27 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 10 Aug 2007 18:27:41 +0000 (18:27 +0000)
commit009e9f7e456de974ac457df6614cd2f87b7480dd
treeceeed44c67b83c18b3f36a84d5c45f9276b1cdd4
parent30bf7710b5c64deb318752343bb80a70b3c53429
Build ASTs before relexing the file.  This avoids having comment finding mutate the
preprocessor state, causing bogus diagnostics when the file is parsed for real.  This
implements Misc/diag-checker.c.  Thanks to Ted for noticing this.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41000 91177308-0d34-0410-b5e6-96231b3b80d8
Driver/DiagChecker.cpp
test/Misc/diag-checker.c [new file with mode: 0644]