llvm-project
7894e636 - [clang-format] Ignore imports in comments for Java import sorting (#177326)

Commit
41 days ago
[clang-format] Ignore imports in comments for Java import sorting (#177326) Java source files can contain apparent import statements inside block comments (e.g., showing a code example). These can get mixed up with real import statements when run through clang-format. This patch tracks block comments (/* ... */) so that we skip lines that are inside them. Fixes #176771 --------- Co-authored-by: Natalia Kokoromyti <knatalia@yost-cm-01-imme.stanford.edu> Co-authored-by: owenca <owenpiano@gmail.com>
Parents
Loading