File tree Expand file tree Collapse file tree 5 files changed +0
-7
lines changed Expand file tree Collapse file tree 5 files changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,6 @@ class DumpVisitor : public RecursiveASTVisitor<DumpVisitor> {
124
124
return Result;
125
125
}
126
126
std::string getKind (const TypeLoc &TL) {
127
- std::string Result;
128
127
if (TL.getTypeLocClass () == TypeLoc::Qualified)
129
128
return " Qualified" ;
130
129
return TL.getType ()->getTypeClassName ();
Original file line number Diff line number Diff line change @@ -433,7 +433,6 @@ TEST(SerializationTest, NoCrashOnBadStringTableSize) {
433
433
std::string CorruptStri =
434
434
(llvm::fromHex (" ffffffff" ) + Stri->Data .drop_front (4 )).str ();
435
435
Stri->Data = CorruptStri;
436
- std::string FileDigest = llvm::fromHex (" EED8F5EAF25C453C" );
437
436
438
437
// Try to crash rather than hang on large allocation.
439
438
ScopedMemoryLimit MemLimit (1000 * 1024 * 1024 ); // 1GB
Original file line number Diff line number Diff line change @@ -344,7 +344,6 @@ mapInputsToAbsPaths(clang::tooling::CompilationDatabase &CDB,
344
344
}
345
345
for (const auto &Cmd : Cmds) {
346
346
llvm::SmallString<256 > CDBPath (Cmd.Filename );
347
- std::string Directory (Cmd.Directory );
348
347
llvm::sys::fs::make_absolute (Cmd.Directory , CDBPath);
349
348
CDBToAbsPaths[std::string (CDBPath)] = std::string (AbsPath);
350
349
}
Original file line number Diff line number Diff line change @@ -360,8 +360,6 @@ getModularizeArgumentsAdjuster(DependencyMap &Dependencies) {
360
360
if (int Count = FileDependents.size ()) {
361
361
for (int Index = 0 ; Index < Count; ++Index) {
362
362
NewArgs.push_back (" -include" );
363
- std::string File (std::string (" \" " ) + FileDependents[Index] +
364
- std::string (" \" " ));
365
363
NewArgs.push_back (FileDependents[Index]);
366
364
}
367
365
}
Original file line number Diff line number Diff line change @@ -381,7 +381,6 @@ static std::string getMacroUnexpandedString(clang::SourceRange Range,
381
381
clang::SourceLocation BeginLoc (Range.getBegin ());
382
382
const char *BeginPtr = PP.getSourceManager ().getCharacterData (BeginLoc);
383
383
size_t Length;
384
- std::string Unexpanded;
385
384
if (MI->isFunctionLike ()) {
386
385
clang::SourceLocation EndLoc (Range.getEnd ());
387
386
const char *EndPtr = PP.getSourceManager ().getCharacterData (EndLoc) + 1 ;
@@ -1328,7 +1327,6 @@ void PreprocessorCallbacks::Defined(const clang::Token &MacroNameTok,
1328
1327
clang::SourceLocation Loc (Range.getBegin ());
1329
1328
clang::IdentifierInfo *II = MacroNameTok.getIdentifierInfo ();
1330
1329
const clang::MacroInfo *MI = MD.getMacroInfo ();
1331
- std::string MacroName = II->getName ().str ();
1332
1330
std::string Unexpanded (getSourceString (PP, Range));
1333
1331
PPTracker.addMacroExpansionInstance (
1334
1332
PP, PPTracker.getCurrentHeaderHandle (), Loc,
You can’t perform that action at this time.
0 commit comments