summaryrefslogtreecommitdiffstats
path: root/clang/tools/c-index-test
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-01-27 23:43:25 +0000
committerTed Kremenek <kremenek@apple.com>2010-01-27 23:43:25 +0000
commita2e77b41f3b5a3a7d751fb32acb6f2987a1d4d03 (patch)
tree7b66d4345912ad947c46fd1fe5b4f25064aa322b /clang/tools/c-index-test
parentfeba1e2495d6d3be31b2930d0ad8d49956cd53c4 (diff)
downloadbcm5719-llvm-a2e77b41f3b5a3a7d751fb32acb6f2987a1d4d03.tar.gz
bcm5719-llvm-a2e77b41f3b5a3a7d751fb32acb6f2987a1d4d03.zip
Add skeleton for a more structured way to analyzing pring format
strings than what we currently have in Sema. This is both an experiment and a WIP. The idea is simple: parse the format string incrementally, constructing a well-structure representation of each format specifier. Each format specifier is then handed back one-by-one to a client via a callback. Malformed format strings are also handled with callbacks. The idea is to separate the parsing of the format string from the emission of diagnostics. Currently what we have in Sema for handling format strings is a mongrel of both that is hard to follow and difficult to modify (I can apply this label since I'm the original author of that code). This is in libAnalysis as it is reasonable generic and can potentially be used both by libSema and libChecker. Comments welcome. llvm-svn: 94702
Diffstat (limited to 'clang/tools/c-index-test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud