llvm-project/clang/lib
mydeveloperday c2ec5dd209 [clang-format] Left/Right alignment fixer can cause false positive replacements when they don't actually change anything
Earlier during the development of {D69764} I felt it was no longer necessary to
ensure we were not trying to change code which didn't need to change
and we felt this could be removed, however I'd like to bring this back for now
as I am seeing some false positives in terms of the "replacements"

What I see is the generation of a replacement which is a "No Op" on the original
code, I think this comes about because of the merging of replacements:

```
static const a;
->
const static a;
->
static const a;
```

The replacements don't really merge, in such a way as to identify when we have gone
back to the original

Also remove the Penalty as I'm not using it (and it became marked as set and no used,
I'd rather get rid of it if it means nothing)

I think we need to do this step for now, as many people use the --output-replacements-xml
to identify that the file "needs a clang-format"

The same can be seen with the -n or --dry-run option as this uses the replacements
to drive the error/warning output.

Reviewed By: HazardyKnusperkeks

Differential Revision: https://reviews.llvm.org/D110392
2021-09-25 17:35:41 +01:00
..
APINotes [clang][APINotes] Fix -Wunused-function warning (NFC) 2021-04-01 09:52:43 +08:00
ARCMigrate Cleanup identifier parsing; NFC 2021-09-14 09:12:22 -04:00
AST [clang] set templates as invalid when any of the parameters are invalid 2021-09-25 04:04:47 +02:00
ASTMatchers Reapply "Support Attr in DynTypedNode and ASTMatchers." 2021-08-06 22:30:32 +02:00
Analysis Thread safety analysis: Drop special block handling 2021-09-20 15:20:15 +02:00
Basic [SystemZ][z/OS] Add GOFF Support to the DataLayout 2021-09-24 14:09:01 -04:00
CodeGen DebugInfo: STN: Handle unreconstitutable types in function types 2021-09-23 21:13:16 -07:00
CrossTU PR51018: Remove explicit conversions from SmallString to StringRef to future-proof against C++23 2021-07-08 13:37:57 -07:00
DirectoryWatcher Revert "Re-Revert "DirectoryWatcher: add an implementation for Windows"" 2021-06-19 09:19:52 -07:00
Driver Revert "[Driver] Correctly handle static C++ standard library" 2021-09-24 18:44:53 -04:00
Edit Cleanup identifier parsing; NFC 2021-09-14 09:12:22 -04:00
Format [clang-format] Left/Right alignment fixer can cause false positive replacements when they don't actually change anything 2021-09-25 17:35:41 +01:00
Frontend DebugInfo: Move the '=' version of -gsimple-template-names to the frontend 2021-09-24 11:18:10 -07:00
FrontendTool [OptTable] Rename PrintHelp to printHelp 2021-06-24 14:47:03 -07:00
Headers [PowerPC] Add range checks for P10 Vector Builtins 2021-09-23 11:05:49 -05:00
Index [Clang] Add __ibm128 type to represent ppc_fp128 2021-09-06 18:00:58 +08:00
IndexSerialization
Interpreter Revert "Reland "[clang-repl] Re-implement clang-interpreter as a test case."" 2021-09-03 13:18:09 +00:00
Lex Support Unicode 14 identifiers 2021-09-16 13:21:27 -04:00
Parse OpenMP 5.0 metadirective 2021-09-18 13:40:44 -05:00
Rewrite [analyzer] Highlight arrows for currently selected event 2021-08-02 19:15:01 +03:00
Sema [PowerPC] Add range check for vec_genpcvm builtins 2021-09-24 11:15:44 -05:00
Serialization OpenMP 5.0 metadirective 2021-09-18 13:40:44 -05:00
StaticAnalyzer [analyzer] Retrieve a value from list initialization of constant array declaration in a global scope. 2021-09-24 12:37:58 +03:00
Testing
Tooling Cleanup identifier parsing; NFC 2021-09-14 09:12:22 -04:00
CMakeLists.txt [clang-repl] Recommit "Land initial infrastructure for incremental parsing" 2021-05-13 06:30:29 +00:00