As of https://reviews.llvm.org/D93839, clang-format can produce different formatted files depending on amount of whitespace. For example, given (A): ``` #include <stdint.h> namespace fuzzing {} ``` `clang-format` with this patch would produced (B): ``` #include <stdint.h> namespace fuzzing { } ``` but given (C): ``` #include <stdint.h> namespace fuzzing { } ``` would be formatted to (D): ``` #include <stdint.h> namespace fuzzing { } ``` The invocation specifically is `clang-format --style=google file`. Prior to this patch, both inputs (A/C) would give the same output: ``` #include <stdint.h> namespace fuzzing {} ``` This seems to be unintended behavior that should be fixed. This doesn't seem to occur if `#include "stdint.h"` is used.
https://reviews.llvm.org/D95479 Committed in https://reviews.llvm.org/rGe3713f156b8cb65a2b74f150afb824ce1e2a2fab.
Reopening until it gets merged into 12.x.
Merged: 0a32d93bd95b