diff --git a/clang/include/clang/Basic/PlistSupport.h b/clang/include/clang/Basic/PlistSupport.h index be1304ef7973..b7a938209a1d 100644 --- a/clang/include/clang/Basic/PlistSupport.h +++ b/clang/include/clang/Basic/PlistSupport.h @@ -19,8 +19,8 @@ namespace clang { namespace markup { typedef llvm::DenseMap FIDMap; -static inline void AddFID(FIDMap &FIDs, SmallVectorImpl &V, - const SourceManager &SM, SourceLocation L) { +inline void AddFID(FIDMap &FIDs, SmallVectorImpl &V, + const SourceManager &SM, SourceLocation L) { FileID FID = SM.getFileID(SM.getExpansionLoc(L)); FIDMap::iterator I = FIDs.find(FID); if (I != FIDs.end()) @@ -29,21 +29,21 @@ static inline void AddFID(FIDMap &FIDs, SmallVectorImpl &V, V.push_back(FID); } -static inline unsigned GetFID(const FIDMap &FIDs, const SourceManager &SM, - SourceLocation L) { +inline unsigned GetFID(const FIDMap &FIDs, const SourceManager &SM, + SourceLocation L) { FileID FID = SM.getFileID(SM.getExpansionLoc(L)); FIDMap::const_iterator I = FIDs.find(FID); assert(I != FIDs.end()); return I->second; } -static inline raw_ostream &Indent(raw_ostream &o, const unsigned indent) { +inline raw_ostream &Indent(raw_ostream &o, const unsigned indent) { for (unsigned i = 0; i < indent; ++i) o << ' '; return o; } -static inline raw_ostream &EmitPlistHeader(raw_ostream &o) { +inline raw_ostream &EmitPlistHeader(raw_ostream &o) { static const char *PlistHeader = "\n" ""; o << value; o << ""; return o; } -static inline raw_ostream &EmitString(raw_ostream &o, StringRef s) { +inline raw_ostream &EmitString(raw_ostream &o, StringRef s) { o << ""; for (StringRef::const_iterator I = s.begin(), E = s.end(); I != E; ++I) { char c = *I; @@ -88,10 +88,10 @@ static inline raw_ostream &EmitString(raw_ostream &o, StringRef s) { return o; } -static inline void EmitLocation(raw_ostream &o, const SourceManager &SM, - const LangOptions &LangOpts, SourceLocation L, - const FIDMap &FM, unsigned indent, - bool extend = false) { +inline void EmitLocation(raw_ostream &o, const SourceManager &SM, + const LangOptions &LangOpts, SourceLocation L, + const FIDMap &FM, unsigned indent, + bool extend = false) { FullSourceLoc Loc(SM.getExpansionLoc(L), const_cast(SM)); // Add in the length of the token, so that we cover multi-char tokens. @@ -108,9 +108,9 @@ static inline void EmitLocation(raw_ostream &o, const SourceManager &SM, Indent(o, indent) << "\n"; } -static inline void EmitRange(raw_ostream &o, const SourceManager &SM, - const LangOptions &LangOpts, CharSourceRange R, - const FIDMap &FM, unsigned indent) { +inline void EmitRange(raw_ostream &o, const SourceManager &SM, + const LangOptions &LangOpts, CharSourceRange R, + const FIDMap &FM, unsigned indent) { Indent(o, indent) << "\n"; EmitLocation(o, SM, LangOpts, R.getBegin(), FM, indent + 1); EmitLocation(o, SM, LangOpts, R.getEnd(), FM, indent + 1, R.isTokenRange());