Skip to content

Commit 6907ce2

Browse files
committed
Remove trailing space
sed -Ei 's/[[:space:]]+$//' include/**/*.{def,h,td} lib/**/*.{cpp,h} llvm-svn: 338291
1 parent ce9b3e0 commit 6907ce2

File tree

432 files changed

+7748
-7748
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

432 files changed

+7748
-7748
lines changed

clang/include/clang-c/Index.h

Lines changed: 136 additions & 136 deletions
Large diffs are not rendered by default.

clang/include/clang/ARCMigrate/FileRemapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class FileRemapper {
4141
public:
4242
FileRemapper();
4343
~FileRemapper();
44-
44+
4545
bool initFromDisk(StringRef outputDir, DiagnosticsEngine &Diag,
4646
bool ignoreIfFilesChanged);
4747
bool initFromFile(StringRef filePath, DiagnosticsEngine &Diag,

clang/include/clang/AST/ASTContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
15281528
/// The sizeof operator requires this (C99 6.5.3.4p4).
15291529
CanQualType getSizeType() const;
15301530

1531-
/// Return the unique signed counterpart of
1531+
/// Return the unique signed counterpart of
15321532
/// the integer type corresponding to size_t.
15331533
CanQualType getSignedSizeType() const;
15341534

clang/include/clang/AST/ASTDiagnostic.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ namespace clang {
2323
NUM_BUILTIN_AST_DIAGNOSTICS
2424
};
2525
} // end namespace diag
26-
26+
2727
/// DiagnosticsEngine argument formatting function for diagnostics that
2828
/// involve AST nodes.
2929
///
30-
/// This function formats diagnostic arguments for various AST nodes,
30+
/// This function formats diagnostic arguments for various AST nodes,
3131
/// including types, declaration names, nested name specifiers, and
3232
/// declaration contexts, into strings that can be printed as part of
3333
/// diagnostics. It is meant to be used as the argument to

clang/include/clang/AST/ASTImporter.h

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Attr;
6363
private:
6464
/// The contexts we're importing to and from.
6565
ASTContext &ToContext, &FromContext;
66-
66+
6767
/// The file managers we're importing to and from.
6868
FileManager &ToFileManager, &FromFileManager;
6969

@@ -72,11 +72,11 @@ class Attr;
7272

7373
/// Whether the last diagnostic came from the "from" context.
7474
bool LastDiagFromFrom = false;
75-
75+
7676
/// Mapping from the already-imported types in the "from" context
7777
/// to the corresponding types in the "to" context.
7878
llvm::DenseMap<const Type *, const Type *> ImportedTypes;
79-
79+
8080
/// Mapping from the already-imported declarations in the "from"
8181
/// context to the corresponding declarations in the "to" context.
8282
llvm::DenseMap<Decl *, Decl *> ImportedDecls;
@@ -93,11 +93,11 @@ class Attr;
9393
/// the "from" source manager to the corresponding CXXBasesSpecifier
9494
/// in the "to" source manager.
9595
ImportedCXXBaseSpecifierMap ImportedCXXBaseSpecifiers;
96-
96+
9797
/// Declaration (from, to) pairs that are known not to be equivalent
9898
/// (which we have already complained about).
9999
NonEquivalentDeclSet NonEquivalentDecls;
100-
100+
101101
public:
102102
/// Create a new AST importer.
103103
///
@@ -115,13 +115,13 @@ class Attr;
115115
ASTImporter(ASTContext &ToContext, FileManager &ToFileManager,
116116
ASTContext &FromContext, FileManager &FromFileManager,
117117
bool MinimalImport);
118-
118+
119119
virtual ~ASTImporter();
120-
120+
121121
/// Whether the importer will perform a minimal import, creating
122122
/// to-be-completed forward declarations when possible.
123123
bool isMinimalImport() const { return Minimal; }
124-
124+
125125
/// Import the given type from the "from" context into the "to"
126126
/// context.
127127
///
@@ -142,10 +142,10 @@ class Attr;
142142
/// \returns the equivalent attribute in the "to" context.
143143
Attr *Import(const Attr *FromAttr);
144144

145-
/// Import the given declaration from the "from" context into the
145+
/// Import the given declaration from the "from" context into the
146146
/// "to" context.
147147
///
148-
/// \returns the equivalent declaration in the "to" context, or a NULL type
148+
/// \returns the equivalent declaration in the "to" context, or a NULL type
149149
/// if an error occurred.
150150
Decl *Import(Decl *FromD);
151151
Decl *Import(const Decl *FromD) {
@@ -163,7 +163,7 @@ class Attr;
163163
/// \returns the equivalent declaration context in the "to"
164164
/// context, or a NULL type if an error occurred.
165165
DeclContext *ImportContext(DeclContext *FromDC);
166-
166+
167167
/// Import the given expression from the "from" context into the
168168
/// "to" context.
169169
///
@@ -195,7 +195,7 @@ class Attr;
195195
/// Import the goven template name from the "from" context into the
196196
/// "to" context.
197197
TemplateName Import(TemplateName From);
198-
198+
199199
/// Import the given source location from the "from" context into
200200
/// the "to" context.
201201
///
@@ -229,7 +229,7 @@ class Attr;
229229
/// \returns the equivalent selector in the "to" context.
230230
Selector Import(Selector FromSel);
231231

232-
/// Import the given file ID from the "from" context into the
232+
/// Import the given file ID from the "from" context into the
233233
/// "to" context.
234234
///
235235
/// \returns the equivalent file ID in the source manager of the "to"
@@ -252,13 +252,13 @@ class Attr;
252252
/// Import the definition of the given declaration, including all of
253253
/// the declarations it contains.
254254
///
255-
/// This routine is intended to be used
255+
/// This routine is intended to be used
256256
void ImportDefinition(Decl *From);
257257

258258
/// Cope with a name conflict when importing a declaration into the
259259
/// given context.
260260
///
261-
/// This routine is invoked whenever there is a name conflict while
261+
/// This routine is invoked whenever there is a name conflict while
262262
/// importing a declaration. The returned name will become the name of the
263263
/// imported declaration. By default, the returned name is the same as the
264264
/// original name, leaving the conflict unresolve such that name lookup
@@ -270,7 +270,7 @@ class Attr;
270270
/// \param Name the name of the declaration being imported, which conflicts
271271
/// with other declarations.
272272
///
273-
/// \param DC the declaration context (in the "to" AST context) in which
273+
/// \param DC the declaration context (in the "to" AST context) in which
274274
/// the name is being imported.
275275
///
276276
/// \param IDNS the identifier namespace in which the name will be found.
@@ -286,25 +286,25 @@ class Attr;
286286
unsigned IDNS,
287287
NamedDecl **Decls,
288288
unsigned NumDecls);
289-
289+
290290
/// Retrieve the context that AST nodes are being imported into.
291291
ASTContext &getToContext() const { return ToContext; }
292-
292+
293293
/// Retrieve the context that AST nodes are being imported from.
294294
ASTContext &getFromContext() const { return FromContext; }
295-
295+
296296
/// Retrieve the file manager that AST nodes are being imported into.
297297
FileManager &getToFileManager() const { return ToFileManager; }
298298

299299
/// Retrieve the file manager that AST nodes are being imported from.
300300
FileManager &getFromFileManager() const { return FromFileManager; }
301-
301+
302302
/// Report a diagnostic in the "to" context.
303303
DiagnosticBuilder ToDiag(SourceLocation Loc, unsigned DiagID);
304-
304+
305305
/// Report a diagnostic in the "from" context.
306306
DiagnosticBuilder FromDiag(SourceLocation Loc, unsigned DiagID);
307-
307+
308308
/// Return the set of declarations that we know are not equivalent.
309309
NonEquivalentDeclSet &getNonEquivalentDecls() { return NonEquivalentDecls; }
310310

@@ -313,7 +313,7 @@ class Attr;
313313
///
314314
/// \param D A declaration in the "to" context.
315315
virtual void CompleteDecl(Decl* D);
316-
316+
317317
/// Subclasses can override this function to observe all of the \c From ->
318318
/// \c To declaration mappings as they are imported.
319319
virtual Decl *Imported(Decl *From, Decl *To) { return To; }
@@ -328,7 +328,7 @@ class Attr;
328328
/// RecordDecl can be found, we can complete it without the need for
329329
/// importation, eliminating this loop.
330330
virtual Decl *GetOriginalDecl(Decl *To) { return nullptr; }
331-
331+
332332
/// Determine whether the given types are structurally
333333
/// equivalent.
334334
bool IsStructurallyEquivalent(QualType From, QualType To,

clang/include/clang/AST/ASTLambda.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ inline bool isGenericLambdaCallOperatorSpecialization(const CXXMethodDecl *MD) {
4040
if (!MD) return false;
4141
const CXXRecordDecl *LambdaClass = MD->getParent();
4242
if (LambdaClass && LambdaClass->isGenericLambda())
43-
return isLambdaCallOperator(MD) &&
43+
return isLambdaCallOperator(MD) &&
4444
MD->isFunctionTemplateSpecialization();
4545
return false;
4646
}
@@ -51,11 +51,11 @@ inline bool isLambdaConversionOperator(CXXConversionDecl *C) {
5151

5252
inline bool isLambdaConversionOperator(Decl *D) {
5353
if (!D) return false;
54-
if (CXXConversionDecl *Conv = dyn_cast<CXXConversionDecl>(D))
55-
return isLambdaConversionOperator(Conv);
56-
if (FunctionTemplateDecl *F = dyn_cast<FunctionTemplateDecl>(D))
57-
if (CXXConversionDecl *Conv =
58-
dyn_cast_or_null<CXXConversionDecl>(F->getTemplatedDecl()))
54+
if (CXXConversionDecl *Conv = dyn_cast<CXXConversionDecl>(D))
55+
return isLambdaConversionOperator(Conv);
56+
if (FunctionTemplateDecl *F = dyn_cast<FunctionTemplateDecl>(D))
57+
if (CXXConversionDecl *Conv =
58+
dyn_cast_or_null<CXXConversionDecl>(F->getTemplatedDecl()))
5959
return isLambdaConversionOperator(Conv);
6060
return false;
6161
}
@@ -71,7 +71,7 @@ inline bool isGenericLambdaCallOperatorSpecialization(DeclContext *DC) {
7171
inline DeclContext *getLambdaAwareParentOfDeclContext(DeclContext *DC) {
7272
if (isLambdaCallOperator(DC))
7373
return DC->getParent()->getParent();
74-
else
74+
else
7575
return DC->getParent();
7676
}
7777

clang/include/clang/AST/ASTMutationListener.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ class ASTMutationListener {
134134
/// \param M The containing module in which the definition was made visible,
135135
/// if any.
136136
virtual void RedefinedHiddenDefinition(const NamedDecl *D, Module *M) {}
137-
137+
138138
/// An attribute was added to a RecordDecl
139139
///
140140
/// \param Attr The attribute that was added to the Record
141141
///
142142
/// \param Record The RecordDecl that got a new attribute
143-
virtual void AddedAttributeToRecord(const Attr *Attr,
143+
virtual void AddedAttributeToRecord(const Attr *Attr,
144144
const RecordDecl *Record) {}
145145

146146
// NOTE: If new methods are added they should also be added to

clang/include/clang/AST/Attr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class Attr {
8686
attr::Kind getKind() const {
8787
return static_cast<attr::Kind>(AttrKind);
8888
}
89-
89+
9090
unsigned getSpellingListIndex() const { return SpellingListIndex; }
9191
const char *getSpelling() const;
9292

clang/include/clang/AST/AttrIterator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class specific_attr_iterator {
106106
specific_attr_iterator Right) {
107107
assert((Left.Current == nullptr) == (Right.Current == nullptr));
108108
if (Left.Current < Right.Current)
109-
Left.AdvanceToNext(Right.Current);
109+
Left.AdvanceToNext(Right.Current);
110110
else
111111
Right.AdvanceToNext(Left.Current);
112112
return Left.Current == Right.Current;

clang/include/clang/AST/BaseSubobject.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ namespace clang {
2424

2525
class CXXRecordDecl;
2626

27-
// BaseSubobject - Uniquely identifies a direct or indirect base class.
27+
// BaseSubobject - Uniquely identifies a direct or indirect base class.
2828
// Stores both the base class decl and the offset from the most derived class to
2929
// the base class. Used for vtable and VTT generation.
3030
class BaseSubobject {
3131
/// Base - The base class declaration.
3232
const CXXRecordDecl *Base;
33-
33+
3434
/// BaseOffset - The offset from the most derived class to the base class.
3535
CharUnits BaseOffset;
36-
36+
3737
public:
3838
BaseSubobject() = default;
3939
BaseSubobject(const CXXRecordDecl *Base, CharUnits BaseOffset)
4040
: Base(Base), BaseOffset(BaseOffset) {}
41-
41+
4242
/// getBase - Returns the base class declaration.
4343
const CXXRecordDecl *getBase() const { return Base; }
4444

@@ -74,7 +74,7 @@ template<> struct DenseMapInfo<clang::BaseSubobject> {
7474
Base.getBaseOffset()));
7575
}
7676

77-
static bool isEqual(const clang::BaseSubobject &LHS,
77+
static bool isEqual(const clang::BaseSubobject &LHS,
7878
const clang::BaseSubobject &RHS) {
7979
return LHS == RHS;
8080
}

0 commit comments

Comments
 (0)