src: Fixed Mac build and clang warnings

This commit is contained in:
Eberhard Graether
2018-01-02 12:58:11 +01:00
parent 592f5fb4b1
commit 33572e2104
2 changed files with 5 additions and 5 deletions
@@ -175,7 +175,7 @@ void CxxAstVisitorComponentIndexer::visitTagDecl(clang::TagDecl* d)
utility::convertAccessSpecifier(d->getAccess()),
definitionKind
);
if (clang::EnumDecl* enumDecl = clang::dyn_cast_or_null<clang::EnumDecl>(d))
{
recordTemplateMemberSpecialization(
@@ -201,7 +201,7 @@ void CxxAstVisitorComponentIndexer::visitClassTemplateSpecializationDecl(clang::
{
if (shouldVisitDecl(d))
{
clang::NamedDecl* specializedFromDecl;
clang::NamedDecl* specializedFromDecl = nullptr;
// todo: use context and childcontext!!
llvm::PointerUnion<clang::ClassTemplateDecl*, clang::ClassTemplatePartialSpecializationDecl*> pu = d->getSpecializedTemplateOrPartial();
@@ -251,7 +251,7 @@ void CxxAstVisitorComponentIndexer::visitVarDecl(clang::VarDecl* d)
);
recordTemplateMemberSpecialization(
d->getMemberSpecializationInfo(),
d->getMemberSpecializationInfo(),
getAstVisitor()->getDeclNameCache()->getValue(d),
getParseLocation(d->getLocation()),
symbolKind
@@ -264,7 +264,7 @@ void CxxAstVisitorComponentIndexer::visitVarTemplateSpecializationDecl(clang::Va
{
if (shouldVisitDecl(d))
{
clang::NamedDecl* specializedFromDecl;
clang::NamedDecl* specializedFromDecl = nullptr;
// todo: use context and childcontext!!
llvm::PointerUnion<clang::VarTemplateDecl*, clang::VarTemplatePartialSpecializationDecl*> pu = d->getSpecializedTemplateOrPartial();
+1 -1
View File
@@ -88,7 +88,7 @@ void setupPlatform(int argc, char *argv[])
void setupApp(int argc, char *argv[])
{
FilePath path(QDir::currentPath().toStdString());
AppPath::setAppPath(path.absolute().str() + "/");
AppPath::setAppPath(path.getAbsolute().str() + "/");
if (!appIsMacBundle)
{