r260807 - [index] Change some default parameters to fix an MSVC ICE.
Argyrios Kyrtzidis via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 12 21:17:15 PST 2016
Author: akirtzidis
Date: Fri Feb 12 23:17:15 2016
New Revision: 260807
URL: http://llvm.org/viewvc/llvm-project?rev=260807&view=rev
Log:
[index] Change some default parameters to fix an MSVC ICE.
Many thanks to Yunzhong Gao for tracking this down!
Modified:
cfe/trunk/lib/Index/IndexingContext.h
Modified: cfe/trunk/lib/Index/IndexingContext.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Index/IndexingContext.h?rev=260807&r1=260806&r2=260807&view=diff
==============================================================================
--- cfe/trunk/lib/Index/IndexingContext.h (original)
+++ cfe/trunk/lib/Index/IndexingContext.h Fri Feb 12 23:17:15 2016
@@ -62,18 +62,18 @@ public:
static bool isTemplateImplicitInstantiation(const Decl *D);
bool handleDecl(const Decl *D, SymbolRoleSet Roles = SymbolRoleSet(),
- ArrayRef<SymbolRelation> Relations = {});
+ ArrayRef<SymbolRelation> Relations = None);
bool handleDecl(const Decl *D, SourceLocation Loc,
SymbolRoleSet Roles = SymbolRoleSet(),
- ArrayRef<SymbolRelation> Relations = {},
+ ArrayRef<SymbolRelation> Relations = None,
const DeclContext *DC = nullptr);
bool handleReference(const NamedDecl *D, SourceLocation Loc,
const NamedDecl *Parent,
const DeclContext *DC,
SymbolRoleSet Roles,
- ArrayRef<SymbolRelation> Relations = {},
+ ArrayRef<SymbolRelation> Relations = None,
const Expr *RefE = nullptr,
const Decl *RefD = nullptr);
More information about the cfe-commits
mailing list