| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
llvm-svn: 174057
|
|
|
|
| |
llvm-svn: 172923
|
|
|
|
| |
llvm-svn: 172907
|
|
|
|
| |
llvm-svn: 170635
|
|
|
|
|
|
|
|
|
| |
fix any bad objectiveC syntax coming out of
DeclPrinter. This is on going. Also, introduce a new
PrintPolicy and use it as needed when declaration tag
is to be produced via DeclPrinter.
llvm-svn: 170606
|
|
|
|
|
|
|
|
|
|
| |
use clang's formatter. Currently, formatter is used
to format declaration tags for xml comments. Since formatter
is in flux and its change will break several of the clang comment
tests, only a single tests is formatted using this facility.
Doug has reviewed and approved it for check-in.
llvm-svn: 170467
|
|
|
|
|
|
|
|
|
| |
definition, rather than at the end of the definition of the set of nested
classes. We still defer checking of the user-specified exception specification
to the end of the nesting -- we can't check that until we've parsed the
in-class initializers for non-static data members.
llvm-svn: 169805
|
|
|
|
|
|
| |
in constructors.
llvm-svn: 169440
|
|
|
|
|
|
| |
constructors.
llvm-svn: 169435
|
|
|
|
| |
llvm-svn: 169413
|
|
|
|
|
|
|
|
|
| |
<declaration> tag of Comment XML.
Added DeclPrint support for constructors
and fix tests accordingly.
This is wip. // rdar://12378714
llvm-svn: 169412
|
|
|
|
|
|
| |
I forgot to re-sort after fixing main module headers.
llvm-svn: 169244
|
|
|
|
|
|
| |
I've tried to place sensible headers at the top as main-module headers.
llvm-svn: 169243
|
|
|
|
| |
llvm-svn: 169236
|
|
|
|
| |
llvm-svn: 169235
|
|
|
|
| |
llvm-svn: 168957
|
|
|
|
|
|
| |
stuff. Conditioning-out in macro argument was not accepted on MS cl.exe.
llvm-svn: 168867
|
|
|
|
|
|
|
|
|
| |
according to r168856, for now.
I think "i128", that I conditioned out, could be completely removed.
MS Compiler doesn't accept i128. We can assume no one would use i128.
llvm-svn: 168865
|
|
|
|
|
|
| |
Introduced in r167507, discovered in review by Abramo Bagnara.
llvm-svn: 167597
|
|
|
|
|
|
| |
ConstructorDecl source range.
llvm-svn: 167583
|
|
|
|
| |
llvm-svn: 167581
|
|
|
|
|
|
| |
Patch by Philip Craig.
llvm-svn: 167538
|
|
|
|
|
|
| |
Patch by Philip Craig.
llvm-svn: 167470
|
|
|
|
| |
llvm-svn: 166511
|
|
|
|
| |
llvm-svn: 166509
|
|
|
|
|
|
|
| |
for current(rewritten) comment and getParamNameAsWritten
to access param name coming with \param marker.
llvm-svn: 166231
|
|
|
|
|
|
| |
Patch by Dmitri Gribenko.
llvm-svn: 166209
|
|
|
|
|
|
|
| |
template when comment is comming from overridden declaration.
// rdar://12378793
llvm-svn: 165953
|
|
|
|
|
|
|
|
|
|
| |
methods looking for documentation on a particular base
class inherited by any method that overrides the base class.
In case of redeclaration, as when objc method is defined
in the implementation, it also looks up for documentation
in class/class extension being redeclared.
llvm-svn: 165643
|
|
|
|
|
|
|
| |
use it to suggest appropriate macro for __attribute__((deprecated)) in
-Wdocumentation-deprecated-sync.
llvm-svn: 164892
|
|
|
|
|
|
|
|
| |
"0x100000000i128 => 4294967296L", for now.
LONG_MAX is 2147483647L on common 32 bit and LLP64 (Windows x64).
llvm-svn: 164478
|
|
|
|
|
|
| |
printing directly rather than through a complicated machinery of ObjC rewriter.
llvm-svn: 164477
|
|
|
|
|
|
| |
since no Doxygen command starts with a digit.
llvm-svn: 163909
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now we have a list of all commands. This is a good thing in itself, but it
also enables us to easily implement typo correction for command names.
With this change we have objects that contain information about each command,
so it makes sense to resolve command name just once during lexing (currently we
store command names as strings and do a linear search every time some property
value is needed). Thus comment token and AST nodes were changed to contain a
command ID -- index into a tables of builtin and registered commands. Unknown
commands are registered during parsing and thus are also uniformly assigned an
ID. Using an ID instead of a StringRef is also a nice memory optimization
since ID is a small integer that fits into a common bitfield in Comment class.
This change implies that to get any information about a command (even a command
name) we need a CommandTraits object to resolve the command ID to CommandInfo*.
Currently a fresh temporary CommandTraits object is created whenever it is
needed since it does not have any state. But with this change it has state --
new commands can be registered, so a CommandTraits object was added to
ASTContext.
Also, in libclang CXComment has to be expanded to include a CXTranslationUnit
so that all functions working on comment AST nodes can get a CommandTraits
object. This breaks binary compatibility of CXComment APIs.
Now clang_FullComment_getAsXML(CXTranslationUnit TU, CXComment CXC) doesn't
need TU parameter anymore, so it was removed. This is a source-incompatible
change for this C API.
llvm-svn: 163540
|
|
|
|
|
|
|
| |
This is similar to how we divide up the StaticAnalyzer libraries to separate
core functionality to what is clearly associated with Frontend actions.
llvm-svn: 163050
|
|
|
|
| |
llvm-svn: 162986
|
|
|
|
|
|
| |
function from Tooling.
llvm-svn: 162976
|
|
|
|
|
|
| |
explicitly visible in test cases which language variant is used.
llvm-svn: 162974
|
|
|
|
|
|
| |
Also update the tests that rely on c++98 to explicitly mention that.
llvm-svn: 162890
|
|
|
|
|
|
| |
incompatible.
llvm-svn: 162631
|
|
|
|
|
|
|
| |
databases. Move JSONCompilationDatabase.h to its own files and
register it as plugin.
llvm-svn: 162541
|
|
|
|
|
|
|
|
|
| |
ASTMatchers have the same name as the corresponding AST nodes
but are lower case. The only exceptions are the "CXX" prefixes
which are not copied over to the matcher names as the goal is to
actually remove these prefixes from the AST node names.
llvm-svn: 162536
|
|
|
|
| |
llvm-svn: 162512
|
|
|
|
| |
llvm-svn: 162511
|
|
|
|
|
|
|
|
|
|
| |
name. This should reduce the amount of warning false positives about bad HTML
in comments when the comment author intended to put a reference to a template.
This change will also enable us parse the comment as intended in these cases.
Fixes part 1 of PR13374.
llvm-svn: 162407
|
|
|
|
| |
llvm-svn: 162294
|
|
|
|
|
|
| |
to reflect the intention, not the implementation.
llvm-svn: 162293
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a flag PrintingPolicy::DontRecurseInDeclContext to provide "terse" output
from DeclPrinter. The motivation is to use DeclPrinter to print declarations
in user-friendly format, without overwhelming user with inner detail of the
declaration being printed.
Also add many tests for DeclPrinter. There are quite a few things that we
print incorrectly: search for WRONG in DeclPrinterTest.cpp -- and these tests
check our output against incorrect output, so that we can fix/refactor/rewrite
the DeclPrinter later.
llvm-svn: 162245
|
|
|
|
| |
llvm-svn: 161548
|
|
|
|
|
|
| |
command, for example: \tparam\brief.
llvm-svn: 161361
|