aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTestJava.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2015-01-04 05:29:21 +0000
committerNico Weber <nicolasweber@gmx.de>2015-01-04 05:29:21 +0000
commit227822e11684462f1730a972398bd1a66613a5de (patch)
tree00660633e1f4ebf9c027fec7b756822ba72ffadb /clang/unittests/Format/FormatTestJava.cpp
parent3632e034ba9dbe8f1fb41fb84c7b6588c2ea5e4f (diff)
downloadllvm-227822e11684462f1730a972398bd1a66613a5de.zip
llvm-227822e11684462f1730a972398bd1a66613a5de.tar.gz
llvm-227822e11684462f1730a972398bd1a66613a5de.tar.bz2
Document that GetTypeForDeclarator() cannot return a null type.
Also add a few asserts for this. The existing code assumes this in a bunch of places already (see e.g. the assert at the top of ParseTypedefDecl(), and there are many unchecked calls on the result of GetTypeForDeclarator()), and from looking through the code this should always be true from what I can tell. This allows removing ASTContext::getNullTypeSourceInfo() too as that's now unused. No behavior change intended. llvm-svn: 225125
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
0 files changed, 0 insertions, 0 deletions