Clean out IWYU pragma comments in IWYU itself

None of these pragmas are necessary at this point.
This commit is contained in:
Kim Gräsman 2023-01-07 20:49:52 +01:00
parent 35effcf918
commit d7e4a20e8f
4 changed files with 2 additions and 10 deletions

View File

@ -109,10 +109,7 @@
#include "iwyu_output.h"
#include "iwyu_path_util.h"
#include "iwyu_port.h" // for CHECK_
// This is needed for
// preprocessor_info().PublicHeaderIntendsToProvide(). Somehow IWYU
// removes it mistakenly.
#include "iwyu_preprocessor.h" // IWYU pragma: keep
#include "iwyu_preprocessor.h"
#include "iwyu_stl_util.h"
#include "iwyu_string_util.h"
#include "iwyu_use_flags.h"

View File

@ -19,7 +19,6 @@
#include <string>
#include <utility>
#include "llvm/ADT/ArrayRef.h" // IWYU pragma: keep
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/Triple.h"

View File

@ -22,12 +22,10 @@
#include "iwyu_include_picker.h"
#include "iwyu_location_util.h"
#include "iwyu_path_util.h"
#include "iwyu_preprocessor.h" // IWYU pragma: keep
#include "iwyu_preprocessor.h"
#include "iwyu_stl_util.h"
#include "iwyu_string_util.h"
#include "iwyu_verrs.h"
// TODO(wan): remove this once the IWYU bug is fixed.
// IWYU pragma: no_include "foo/bar/baz.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/raw_ostream.h"
#include "clang/AST/ASTContext.h"

View File

@ -27,8 +27,6 @@
#include "iwyu_stl_util.h"
#include "iwyu_string_util.h"
#include "iwyu_verrs.h"
// TODO(wan): remove this once the IWYU bug is fixed.
// IWYU pragma: no_include "foo/bar/baz.h"
#include "llvm/Support/raw_ostream.h"
#include "clang/Basic/IdentifierTable.h"
#include "clang/Lex/MacroInfo.h"