Also ensure // commented Debug() lines don't get included in Debug/Trace_tags.
$(AM_V_GEN)\
grep '\<$(@:_tags.tmp=)\(\.isOn\)* *( *\".*\" *)' \
`find @srcdir@/../ -name "*.cpp" -o -name "*.h" -o -name "*.cc" -o -name "*.g"` | \
- sed 's/^$(@:_tags.tmp=)\(\.isOn\)* *( *\"\([^"]*\)\".*/\2/;s/.*[^a-zA-Z0-9_]$(@:_tags.tmp=)\(\.isOn\)* *( *\"\([^"]*\)\".*/\2/' | LC_ALL=C sort | uniq >"$@"
+ sed 's/\/\/.*//;s/^$(@:_tags.tmp=)\(\.isOn\)* *( *\"\([^"]*\)\".*/\2/;s/.*[^a-zA-Z0-9_]$(@:_tags.tmp=)\(\.isOn\)* *( *\"\([^"]*\)\".*/\2/' | LC_ALL=C sort | uniq >"$@"
MOSTLYCLEANFILES = \
Debug_tags \
inline void addTraceTag(std::string option, std::string optarg, SmtEngine* smt) {
if(Configuration::isTracingBuild()) {
- if(!Configuration::isTraceTag(optarg.c_str()))
+ if(!Configuration::isTraceTag(optarg.c_str())) {
if(optarg == "help") {
printf("available tags:");
throw OptionException(std::string("trace tag ") + optarg +
std::string(" not available.") +
suggestTags(Configuration::getTraceTags(), optarg) );
+ }
} else {
throw OptionException("trace tags not available in non-tracing builds");
}