Syntax fixes for VisualStudio < 2015.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
This commit is contained in:
parent
595a8c7c74
commit
e40bd4f1a0
@ -12,6 +12,10 @@
|
||||
|
||||
#include <exception>
|
||||
|
||||
#if defined(_MSC_VER) && (_MSC_VER <= 1900) && !defined(noexcept)
|
||||
#define noexcept
|
||||
#endif
|
||||
|
||||
namespace clang {
|
||||
class Sema;
|
||||
class Expr;
|
||||
|
@ -14,6 +14,10 @@
|
||||
|
||||
#include "clang/AST/DeclVisitor.h"
|
||||
|
||||
#if defined(_MSC_VER) && (_MSC_VER <= 1900) && !defined(constexpr)
|
||||
#define constexpr const
|
||||
#endif
|
||||
|
||||
namespace clang {
|
||||
|
||||
class CodeGenerator;
|
||||
|
@ -103,7 +103,7 @@ private:
|
||||
public:
|
||||
using Base_t = llvm::orc::ObjectLinkingLayer<NotifyObjectLoadedT>;
|
||||
using NotifyLoadedFtor = NotifyObjectLoadedT;
|
||||
using NotifyFinalizedFtor = typename Base_t::NotifyFinalizedFtor;
|
||||
using NotifyFinalizedFtor = Base_t::NotifyFinalizedFtor;
|
||||
RemovableObjectLinkingLayer(SymbolMapT &SymMap,
|
||||
NotifyObjectLoadedT NotifyLoaded,
|
||||
NotifyFinalizedFtor NotifyFinalized = NotifyFinalizedFtor()):
|
||||
|
@ -24,10 +24,6 @@
|
||||
#include "clang/Sema/Template.h"
|
||||
#include "clang/Sema/TemplateDeduction.h"
|
||||
|
||||
#if defined(_MSC_VER) && (_MSC_VER <= 1800)
|
||||
#define constexpr const
|
||||
#endif
|
||||
|
||||
using namespace clang;
|
||||
|
||||
namespace clang {
|
||||
@ -51,8 +47,7 @@ namespace clang {
|
||||
SourceLocation OldPrevTokLocation;
|
||||
unsigned short OldParenCount, OldBracketCount, OldBraceCount;
|
||||
unsigned OldTemplateParameterDepth;
|
||||
decltype(P->getActions().InNonInstantiationSFINAEContext)
|
||||
OldInNonInstantiationSFINAEContext;
|
||||
bool OldInNonInstantiationSFINAEContext;
|
||||
|
||||
public:
|
||||
ParserStateRAII(Parser& p)
|
||||
|
Loading…
x
Reference in New Issue
Block a user