[clang-tools-extra] r208986 - Initializer list is unavailable. Use the constructor instead.

NAKAMURA Takumi geek4civic at gmail.com
Fri May 16 06:37:20 PDT 2014


Author: chapuni
Date: Fri May 16 08:37:20 2014
New Revision: 208986

URL: http://llvm.org/viewvc/llvm-project?rev=208986&view=rev
Log:
Initializer list is unavailable. Use the constructor instead.

Modified:
    clang-tools-extra/trunk/clang-tidy/misc/UseOverride.cpp

Modified: clang-tools-extra/trunk/clang-tidy/misc/UseOverride.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/misc/UseOverride.cpp?rev=208986&r1=208985&r2=208986&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/misc/UseOverride.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/misc/UseOverride.cpp Fri May 16 08:37:20 2014
@@ -44,8 +44,9 @@ static SmallVector<Token, 16> ParseToken
   return Tokens;
 }
 
-static StringRef GetText(const Token& Tok, const SourceManager &Sources) {
-  return {Sources.getCharacterData(Tok.getLocation()), Tok.getLength()};
+static StringRef GetText(const Token &Tok, const SourceManager &Sources) {
+  return StringRef(Sources.getCharacterData(Tok.getLocation()),
+                   Tok.getLength());
 }
 
 void UseOverride::check(const MatchFinder::MatchResult &Result) {





More information about the cfe-commits mailing list