forked from qt-creator/qt-creator
Clang: Remove pointless function
Change-Id: Ib4cc26ca39f7ced993a9a4c142208c377d940719 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
@@ -104,16 +104,6 @@ static QString getResourceDir()
|
|||||||
return dir.canonicalPath();
|
return dir.canonicalPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool maybeIncludeBorlandExtensions()
|
|
||||||
{
|
|
||||||
return
|
|
||||||
#if defined(CINDEX_VERSION) // clang 3.2 or higher
|
|
||||||
true;
|
|
||||||
#else
|
|
||||||
false;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
class LibClangOptionsBuilder : public CompilerOptionsBuilder
|
class LibClangOptionsBuilder : public CompilerOptionsBuilder
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -128,7 +118,7 @@ public:
|
|||||||
optionsBuilder.add(QLatin1String("-v"));
|
optionsBuilder.add(QLatin1String("-v"));
|
||||||
|
|
||||||
optionsBuilder.addLanguageOption(fileKind);
|
optionsBuilder.addLanguageOption(fileKind);
|
||||||
optionsBuilder.addOptionsForLanguage(maybeIncludeBorlandExtensions());
|
optionsBuilder.addOptionsForLanguage(/*checkForBorlandExtensions*/ true);
|
||||||
|
|
||||||
optionsBuilder.addToolchainAndProjectDefines();
|
optionsBuilder.addToolchainAndProjectDefines();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user