forked from OSchip/llvm-project
33 lines
1.1 KiB
C++
33 lines
1.1 KiB
C++
//===--- Sema.cpp - AST Builder and Semantic Analysis Implementation ------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file was developed by Chris Lattner and is distributed under
|
|
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file implements the actions class which performs semantic analysis and
|
|
// builds an AST out of a parse stream.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "Sema.h"
|
|
#include "clang/AST/ASTContext.h"
|
|
#include "clang/Lex/Preprocessor.h"
|
|
using namespace llvm;
|
|
using namespace clang;
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Helper functions.
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
void Sema::Diag(SourceLocation Loc, unsigned DiagID, const std::string &Msg) {
|
|
Context.PP.Diag(Loc, DiagID, Msg);
|
|
}
|
|
|
|
const LangOptions &Sema::getLangOptions() const {
|
|
return Context.PP.getLangOptions();
|
|
}
|