//
//===----------------------------------------------------------------------===//
+#include <type_traits>
#include <unordered_map>
#include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
namespace {
#define MOCK_SYMBOL_ACCESSOR(Func) \
- auto Func() const->decltype(((IPDBRawSymbol *)nullptr)->Func()) override { \
+ decltype(std::declval<IPDBRawSymbol>().Func()) Func() const override { \
typedef decltype(IPDBRawSymbol::Func()) ReturnType; \
return ReturnType(); \
}