Format all lines with trailing whitespace

This is the result of:

    git grep -n "\s$" | grep-format

No functional change.
This commit is contained in:
Kim Gräsman 2023-01-06 15:18:55 +01:00
parent b65c4b63a7
commit 849c2a2f55
9 changed files with 11 additions and 13 deletions

View File

@ -660,8 +660,8 @@ void IwyuFileInfo::ReportFullSymbolUse(SourceLocation use_loc,
void IwyuFileInfo::ReportFullSymbolUse(SourceLocation use_loc,
const FileEntry* dfn_file,
const string& symbol) {
symbol_uses_.push_back(OneUse(symbol, dfn_file,
GetFilePath(dfn_file), use_loc));
symbol_uses_.push_back(
OneUse(symbol, dfn_file, GetFilePath(dfn_file), use_loc));
LogSymbolUse("Marked full-info use of symbol", symbol_uses_.back());
}

View File

@ -822,7 +822,7 @@ void IwyuPreprocessorInfo::FileChanged_ExitToFile(
"begin_exports without an end_exports");
begin_exports_location_stack_.pop();
}
if (HasOpenBeginKeep(exiting_from)) {
Warn(begin_keep_location_stack_.top(),
"begin_keep without an end_keep");

View File

@ -356,7 +356,7 @@ class IwyuPreprocessorInfo : public clang::PPCallbacks,
// per file in the current inclusion chain..
stack<clang::SourceLocation> begin_exports_location_stack_;
// For processing pragmas. It is the current stack of open "begin_keep"s.
// For processing pragmas. It is the current stack of open "begin_keep"s.
// There should be at most one item in this stack per file in the current
// inclusion chain.
stack<clang::SourceLocation> begin_keep_location_stack_;

View File

@ -61,7 +61,7 @@ class FakeClass7;
class AnotherFakeClass;
/**** IWYU_SUMMARY
/**** IWYU_SUMMARY
tests/cxx/pragma_keep_multi.cc should add these lines:
tests/cxx/pragma_keep_multi.cc should remove these lines:
@ -86,4 +86,3 @@ class FakeClass7; // lines XX-XX
class FakeClass; // lines XX-XX
***** IWYU_SUMMARY */

View File

@ -15,7 +15,7 @@
#include "using_aliased_symbol-alias.h"
void use_symbol() {
void use_symbol() {
// IWYU: ns::symbol is defined in ...*using_aliased_symbol-declare.h", which isn't directly #included.
ns2::symbol();
}

View File

@ -14,8 +14,7 @@
#include "using_aliased_symbol-alias.h"
void not_use_symbol() {
void not_use_symbol() {
}
/**** IWYU_SUMMARY

View File

@ -7,14 +7,14 @@
//
//===----------------------------------------------------------------------===//
// Tests that when we use multiple function overloads through a using decl,
// Tests that when we use multiple function overloads through a using decl,
// that we correctly include all of the necessary files for the overload and
// don't accidentally remove files greedily.
#include "using_overload-float.h"
#include "using_overload-int.h"
void use_overload() {
void use_overload() {
int a = 1;
int b = 2;
float c = 1.f;

View File

@ -15,7 +15,7 @@
#include "using_overload-float.h"
#include "using_overload-int.h"
void use_overload() {
void use_overload() {
int a = 1;
int b = 2;
using ns::add;

View File

@ -7,7 +7,7 @@
//
//===----------------------------------------------------------------------===//
// Tests that when we import a name via a using statement, IWYU tells us we
// Tests that when we import a name via a using statement, IWYU tells us we
// need to include the original thing we're referencing, despite the fact that
// it's not actually used.