aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTestJava.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-03-12 14:28:38 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-03-12 14:28:38 +0000
commite4812148e13cbde16b24adaa261c42bdad52d80b (patch)
tree19af8e140b339a48791a787ba6140e260ac13d15 /clang/unittests/Format/FormatTestJava.cpp
parente9f931f974ca72725836427f7f0d9f80ac7dee14 (diff)
downloadllvm-e4812148e13cbde16b24adaa261c42bdad52d80b.zip
llvm-e4812148e13cbde16b24adaa261c42bdad52d80b.tar.gz
llvm-e4812148e13cbde16b24adaa261c42bdad52d80b.tar.bz2
Use Sema's PrintingPolicy when diagnosing DeclSpecs.
Sema overrides ASTContext's policy on the first emitted diagnostic (doesn't matter if it's ignored or not). This means changing the order of diagnostic emission in Sema suddenly changes the text of diagnostic emitted from the parser. In the test case -Wmissing-prototypes (ignored) was the culprit, use 'int main' to suppress that warning so we see when this regresses. Also move it into Sema/ as it's not testing any C++. llvm-svn: 232039
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
0 files changed, 0 insertions, 0 deletions