[clang-format] Suppress diagnostics on second parse
authorBjörn Schäpers <bjoern@hazardy.de>
Tue, 16 Feb 2021 09:12:22 +0000 (10:12 +0100)
committerBjörn Schäpers <bjoern@hazardy.de>
Fri, 5 Mar 2021 20:42:45 +0000 (21:42 +0100)
commite7309404536cf7f389afc8678688f9e3726f1eb8
treec34f8ede9178a57587ae69aa9095bbd4c5fa7663
parentc2de5aff1a08ce70507f2c0a53eeffa5135c5273
[clang-format] Suppress diagnostics on second parse

This amends 25f753c51e7b17bfca08155c1d777c5667110970.

When applying the child configurations we don't need any diagnostic,
because it was issued when first parsing them. So just drop everything
on the second parse.

Differential Revision: https://reviews.llvm.org/D96760
clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp