[cfe-commits] r48997 - /cfe/trunk/utils/ccc-analyzer
Ted Kremenek
kremenek at apple.com
Mon Mar 31 14:20:32 PDT 2008
Author: kremenek
Date: Mon Mar 31 16:20:32 2008
New Revision: 48997
URL: http://llvm.org/viewvc/llvm-project?rev=48997&view=rev
Log:
Do not abort ccc-analyzer script if an HTML directory is not specified.
Modified:
cfe/trunk/utils/ccc-analyzer
Modified: cfe/trunk/utils/ccc-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ccc-analyzer?rev=48997&r1=48996&r2=48997&view=diff
==============================================================================
--- cfe/trunk/utils/ccc-analyzer (original)
+++ cfe/trunk/utils/ccc-analyzer Mon Mar 31 16:20:32 2008
@@ -64,9 +64,13 @@
args = command + files + target.split()
else:
command = 'clang --grsimple'.split()
- args = command + args + [ '-o', htmldir ]
- print_args.append('-o')
- print_args.append(htmldir)
+ args = command + args;
+
+ if htmldir is not None:
+ args.append('-o')
+ print_args.append('-o')
+ args.append(htmldir)
+ print_args.append(htmldir)
if verbose:
print >> sys.stderr, ' '.join(command+print_args)
@@ -121,9 +125,6 @@
verbose =1
htmldir = os.environ.get('CCC_ANALYZER_HTML')
- if htmldir is None:
- print >> sys.stderr, 'error: CCC_ANALYZER_HTML environment variable not set.'
- sys.exit(1)
i = 0
while i < len(args):
More information about the cfe-commits
mailing list