]> granicus.if.org Git - clang/commit
Tweak AnalyzerOptions::getOptionAsInteger() to populate the string
authorTed Kremenek <kremenek@apple.com>
Tue, 2 Oct 2012 20:31:56 +0000 (20:31 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 2 Oct 2012 20:31:56 +0000 (20:31 +0000)
commit94bb74cef72a33d77c5d6739abfc0840c781eb8e
tree5db9d2c02c1aae532b301917c03b7224d5dfd2a8
parent9e28fe60bbfa5de196ce4aa396210bf10fc5c266
Tweak AnalyzerOptions::getOptionAsInteger() to populate the string
table, making it printable with the ConfigDump checker.  Along the
way, fix a really serious bug where the value was getting parsed
from the string in code that was in an assert() call.  This means
in a Release-Asserts build this code wouldn't work as expected.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165041 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
test/Analysis/analyzer-config.c
test/Analysis/analyzer-config.cpp