Ted Kremenek
7c2137a328
Revert "Go ahead and show experimental checkers in the scan-build "-h" output."
...
llvm-svn: 162587
2012-08-24 20:39:38 +00:00
Ted Kremenek
b5e409fd20
Go ahead and show experimental checkers in the scan-build "-h" output.
...
They are labeled as not being enabled-by-default, and how else
are users going to test them.
Fixes <rdar://problem/11654923>
llvm-svn: 162543
2012-08-24 06:49:34 +00:00
Ted Kremenek
af592eef7b
On OS X, use xcrun (if present) to find the clang to use for static analysis if
...
no clang can be found relative to the location of scan-build.
Fixes <rdar://problem/11691794>
llvm-svn: 162535
2012-08-24 04:53:06 +00:00
Alexander Kornienko
4bcd58b87d
Updated LibTooling.html, minor improvements in CommonOptionsParser
...
llvm-svn: 162521
2012-08-24 00:39:14 +00:00
Jordan Rose
060b163801
[scan-build] Accept -fno-objc-arc as well as -fobjc-arc.
...
This is how Xcode lets individual files be marked as non-ARC when the rest
of the project is ARC-enabled, so this is necessary for scan-build xcodebuild.
Patch by Paul Eipper!
llvm-svn: 162497
2012-08-23 23:16:34 +00:00
Dmitri Gribenko
adba9be7c5
Fix a bunch of -Wdocumentation warnings.
...
llvm-svn: 162452
2012-08-23 17:58:28 +00:00
Argyrios Kyrtzidis
079ff5c6da
[libclang] c-index-test: Make the printing of the overrides list of a cursor in
...
a deterministic order, to avoid random test failures.
llvm-svn: 162408
2012-08-22 23:15:52 +00:00
Alexander Kornienko
01387267c7
Reverted clang-check to fully supported CommandLine Library use-case: global
...
static variables.
llvm-svn: 162391
2012-08-22 20:52:52 +00:00
Alexander Kornienko
bf4871d363
Implemented -ast-dump, -ast-print, -ast-dump-filter options in clang-check
...
llvm-svn: 161753
2012-08-13 10:50:08 +00:00
Dmitri Gribenko
a43ec186a4
Attaching comments to declarations: find comment attached to any redeclaration
...
Not only look for the comment near the declaration itself, but also walk the
redeclaration chain: the previous declaration might have had a documentation
comment.
llvm-svn: 161722
2012-08-11 00:51:43 +00:00
Benjamin Kramer
3a913ed805
Fix a couple of pedantic gcc warnings.
...
llvm-svn: 161656
2012-08-10 10:06:13 +00:00
NAKAMURA Takumi
5c10810754
c-arcmt-test, c-index-test: Appease Cygwin, to link to libclang.a, not clang.dll.
...
llvm-svn: 161655
2012-08-10 06:10:58 +00:00
Chandler Carruth
6f71e24859
Temporarily revert r161612 while we figure out just what the semantics
...
of PARALLEL_DIRS are. They apparantly aren't what either Nick, Eric, or
I thought. ;] Should let the bots make forward progress.
llvm-svn: 161618
2012-08-09 21:02:52 +00:00
Chandler Carruth
69335414c1
Make all of the tools build in parallel. Missing this caused incremental
...
rebuilds to serially link each tool, which is really really slow.
We still have to build libclang serially first because c-index-test
depends on it.
llvm-svn: 161612
2012-08-09 20:40:24 +00:00
Chandler Carruth
60a232c82d
Recurse into the extra tools repo the correct way from the Makefile
...
build system. Thanks to Nick for pointing at the actual construct which
should be used here.
llvm-svn: 161609
2012-08-09 20:21:38 +00:00
Dmitri Gribenko
ba7aca3b38
Comment to HTML and XML conversion: ignore commands that contain a declaration
...
as their argument. For example, \fn, \function, \typedef, \method, \class etc.
llvm-svn: 161601
2012-08-09 18:20:29 +00:00
Dmitri Gribenko
dcbc8ce2b5
Comment to HTML and XML conversion: use CommandTraits to classify commands.
...
This also fixes a bug in comment to XML conversion: \result was just an
ordinary paragraph, not an alias for \returns.
llvm-svn: 161596
2012-08-09 17:33:20 +00:00
Chad Rosier
bf40d6b6a5
[ms-inline asm] Add various MC components to clang build to support MS-style inline assembly.
...
llvm-svn: 161594
2012-08-09 17:17:01 +00:00
Chandler Carruth
ac83232974
Allow the Makefile build system to find the extra repo if it is checked
...
out.
Unfortunately, the existing makefiles for the extra repo don't specify
the correct library dependencies. Fixing that next. If you're following
along, you'll get linker errors.
llvm-svn: 161549
2012-08-09 00:05:27 +00:00
Dmitri Gribenko
6cffc1928a
Comment XML: use xml:space="preserve" in Verbatim tags, so that XML tidy does
...
not compress spaces in verbatim content.
llvm-svn: 161531
2012-08-08 22:10:24 +00:00
Chad Rosier
4577cd3036
Add various MC components to clang build to support MS-style inline assembly.
...
llvm-svn: 161498
2012-08-08 16:27:29 +00:00
Ted Kremenek
7c88d2ae0f
Teach ccc-analyze about -fobjc-legacy-dispatch and -mios-simulator-version-min
...
llvm-svn: 161443
2012-08-07 19:27:08 +00:00
Dmitri Gribenko
168d23414a
Comment AST: DeclInfo: add a special kind for enums.
...
Comment XML: add a root node kind for enums.
llvm-svn: 161442
2012-08-07 18:59:04 +00:00
Dmitri Gribenko
815f72bac7
c-index-test Makefile: fix build on Linux. Reviewed by Eric Christopher.
...
llvm-svn: 161439
2012-08-07 18:36:33 +00:00
Dmitri Gribenko
740c0fbe0e
libclang API for comment-to-xml conversion.
...
The implementation also includes a Relax NG schema and tests for the schema
itself. The schema is used in c-index-test to verify that XML documents we
produce are valid. In order to do the validation, we add an optional libxml2
dependency for c-index-test.
Credits for CMake part go to Doug Gregor. Credits for Autoconf part go to Eric
Christopher. Thanks!
llvm-svn: 161431
2012-08-07 17:54:38 +00:00
Chandler Carruth
1479492125
Initial support for recursing into the new clang-tools-extra repository
...
if checked out under clang/tools/extra.
This is mostly so folks other than me can start to test. Documentation,
details, and an announcement are still in the works.
llvm-svn: 161405
2012-08-07 08:37:42 +00:00
Ted Kremenek
b9ddbd3daa
scan-build: factor out setting of environment variables.
...
llvm-svn: 161343
2012-08-06 20:19:19 +00:00
Ted Kremenek
0d29bd231b
Pull 'xcodebuild' wrapper logic into a separate function.
...
llvm-svn: 161330
2012-08-06 18:54:19 +00:00
Dmitri Gribenko
58e4131995
Comment to HTML conversion: correct typo in CSS class name: taram -> tparam
...
llvm-svn: 161145
2012-08-01 23:47:30 +00:00
Dmitri Gribenko
3a770d0fe4
Comment to HTML conversion: refactor. Extracted a class to for FullComment
...
semantic parts -- this will be reused for comment to XML conversion.
llvm-svn: 161139
2012-08-01 22:48:16 +00:00
Dmitri Gribenko
307cf89b19
Comment to HTML conversion: skip \tparam commands with whitespace paragraphs
...
llvm-svn: 161096
2012-08-01 00:48:00 +00:00
Dmitri Gribenko
7c0456f91b
Comment to HTML conversion: escape HTML special characters in command arguments
...
llvm-svn: 161094
2012-08-01 00:21:12 +00:00
Dmitri Gribenko
34df220410
Comment parsing: add support for \tparam command on all levels.
...
The only caveat is renumbering CXCommentKind enum for aesthetic reasons -- this
breaks libclang binary compatibility, but should not be a problem since API is
so new.
This also fixes PR13372 as a side-effect.
llvm-svn: 161087
2012-07-31 22:37:06 +00:00
David Blaikie
5ba8be0e9a
Include clang-check as part of the clang installation.
...
This also tidies up a couple of other tools we were (partially) installing:
* c-index-test was being installed but shouldn't be (it's just a clang-dev tool)
* diagtool was being installed in cmake but not make (& shouldn't be installed in either)
Review by Manuel Klimek, Doug Gregor, and Chandler Carruth.
llvm-svn: 161073
2012-07-31 20:29:59 +00:00
Dmitri Gribenko
3af5f73344
Move comment from member operator() to class.
...
llvm-svn: 160980
2012-07-30 19:47:34 +00:00
Dmitri Gribenko
ec551f67e5
c-index-test: remove dead store. Found by Clang static analyzer!
...
llvm-svn: 160974
2012-07-30 18:00:35 +00:00
Dmitri Gribenko
5de4c064c1
Add missing include for Linux buildbot
...
llvm-svn: 160971
2012-07-30 17:49:32 +00:00
Dmitri Gribenko
a260c030b8
Add an assert to ParamCommandComment::getParamIndex() -- it should not be
...
called unless index is valid.
llvm-svn: 160970
2012-07-30 17:38:19 +00:00
Arnaud A. de Grandmaison
e00629f777
[scan-build] Fix clang++ pathname
...
llvm-svn: 160871
2012-07-27 17:10:06 +00:00
NAKAMURA Takumi
a9a35c67e1
libclang, examples: [CMake] Add dependencies to tblgen'd headers.
...
llvm-svn: 160849
2012-07-27 06:17:56 +00:00
Alexander Kornienko
cdc3987ca8
Removed standalone clang-ast-dump tool.
...
llvm-svn: 160772
2012-07-26 01:44:18 +00:00
Dmitri Gribenko
6b375193a2
libclang comment to HTML rendering: \result is the same as \returns
...
llvm-svn: 160738
2012-07-25 17:14:58 +00:00
Dmitri Gribenko
378458d597
libclang comments AST: clang_ParamCommandComment_getParamName: don't assert
...
when a \param command does not have a parameter name, just return an empty
string instead.
llvm-svn: 160638
2012-07-23 19:41:49 +00:00
Dmitri Gribenko
d73e4ce992
Comment AST: add InlineContentComment::RenderKind to specify a default
...
rendering mode for clients that don't want to interpret Doxygen commands.
Also add a libclang API to query this information.
llvm-svn: 160633
2012-07-23 16:43:01 +00:00
Dmitri Gribenko
4c6d7a2ed2
Comment to HTML conversion: add more CSS classes to identify function arguments
...
by index. This is useful if the user does not document all arguments, and we
can't find a particular argument by index via :nth-of-type() CSS selector.
llvm-svn: 160595
2012-07-21 01:47:43 +00:00
Dmitri Gribenko
f267c87e31
Fix c-index-test to compile as C89.
...
llvm-svn: 160582
2012-07-20 22:00:35 +00:00
Dmitri Gribenko
5e4fe00e64
Add libclang APIs to walk comments ASTs and an API to convert a comment to an
...
HTML fragment.
For testing, c-index-test now has even more output:
* HTML rendering of a comment
* comment AST tree dump in S-expressions like Comment::dump(), but implemented
* with libclang APIs.
llvm-svn: 160577
2012-07-20 21:34:34 +00:00
NAKAMURA Takumi
e6c562c051
CMake: clang should depend on clang-headers, or bin/clang would not work better.
...
llvm-svn: 160549
2012-07-20 16:40:09 +00:00
NAKAMURA Takumi
ed5bbe9020
[Win32] Rework crash-report since r145389.
...
- lib/Driver/Driver.cpp, tools/driver/driver.cpp: Exit status should not be propagated, although clang driver should catch exceptions.
- test/Driver/crash-report.c: Add REQUIRES:shell for now.
FIXME: setenv should work also on Lit.InternalShellRunner.
- test/Driver/crash-report.c: Remove XFAIL.
Thanks to Chad, To point out the issue.
llvm-svn: 160343
2012-07-17 05:09:29 +00:00
Dmitri Gribenko
f290b0d137
Move clang_Cursor_getBriefCommentText implementation under `extern "C"'.
...
llvm-svn: 160331
2012-07-17 00:17:45 +00:00