| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
llvm-svn: 177504
|
|
|
|
|
|
|
|
|
| |
The -invert-pointer-binding option will be superseeded by my next
cfe-commit. Instead of explicitly overwriting this flag, clang-format
can then be configured to auto-detect certain style-options based on the
input file.
llvm-svn: 174503
|
|
|
|
| |
llvm-svn: 174502
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Apparently the owners of the tools we want to integrate with (eclipse in
this case) don't have JSON parsers.
The output now is:
<replacements>
<replacement offset='2' length='3'> </replacement>
...
</replacements>
Kicking JSON for now - it's easy enough to get back in when we need it.
FIXME: once we find this useful enough, we might want to add it as
free-standing functions to tooling.
llvm-svn: 174497
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Using -output-replacements will now output the replacements instead
of the changed code. This allows easier integration with tools that
need full control over what changed.
The format is an array of objects with the members "offset" (number),
"length" (number) and "replacement_text" (string), for example:
[
{
"offset": 42,
"length": 5,
"replacement_text": " "
},
{
"offset": 105,
"length": 4,
"replacement_text": ""
}
]
llvm-svn: 174382
|
|
|
|
|
|
|
|
|
|
|
| |
This is backwards compatible with earlier integrations.
Also adds a basic test and a test for the ranges integration.
You can now run:
clang-format -offset=42 -length=15 -offset=150 -length=22
To re-format the ranges (42, +15) and (150, +22).
llvm-svn: 174378
|
|
|
|
|
|
| |
This fixes llvm.org/PR15087.
llvm-svn: 173919
|
|
|
|
| |
llvm-svn: 172821
|
|
|
|
|
|
|
| |
This is temporarily necessary until styles are configurable through files
as it seems to be a contentious issue.
llvm-svn: 172546
|
|
|
|
| |
llvm-svn: 172432
|
|
|
|
| |
llvm-svn: 172405
|
|
|
|
| |
llvm-svn: 172097
|
|
|
|
| |
llvm-svn: 172066
|
|
|
|
|
|
|
|
|
| |
- adds '-h' as an alias for '-help'.
- adds an optional <file> argument
- adds an option -i to in-place edit the given file
- adds a help text to explain what the tool does
llvm-svn: 171858
|
|
|
|
| |
llvm-svn: 171767
|
|
|
|
|
|
|
|
| |
This matches the test change done in clang at r171742. Without this,
clang-format would strip '@' characters and format e.g. '@interface' as
'interface'.
llvm-svn: 171743
|
|
|
|
| |
llvm-svn: 171736
|
|
|
|
|
|
| |
This is done with the script in llvm/utils/sort_includes.py
llvm-svn: 171365
|
|
Reads a single source range (offset, length) as well as the style guide
as parameters and then reformats everything it receives from stdin.
llvm-svn: 169364
|