blob: 4a7f62f608306a826e769f8341e4cc0506e01ab2 [file] [log] [blame]
Chris Lattnerddd6fc82006-11-10 04:58:55 +00001//===--- Sema.cpp - AST Builder and Semantic Analysis Implementation ------===//
Chris Lattner3e7bd4e2006-08-17 05:51:27 +00002//
3// The LLVM Compiler Infrastructure
4//
5// This file was developed by Chris Lattner and is distributed under
6// the University of Illinois Open Source License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
Chris Lattnerddd6fc82006-11-10 04:58:55 +000010// This file implements the actions class which performs semantic analysis and
11// builds an AST out of a parse stream.
Chris Lattner3e7bd4e2006-08-17 05:51:27 +000012//
13//===----------------------------------------------------------------------===//
14
Chris Lattnerddd6fc82006-11-10 04:58:55 +000015#include "Sema.h"
Chris Lattnerc11438c2006-08-18 05:17:52 +000016#include "clang/AST/Decl.h"
Chris Lattner9b6d4cb2006-08-23 05:17:46 +000017#include "clang/AST/Expr.h"
Chris Lattner697e5d62006-11-09 06:32:27 +000018#include "clang/Parse/Action.h"
Chris Lattner9b6d4cb2006-08-23 05:17:46 +000019#include "clang/Parse/Scope.h"
Chris Lattnerc11438c2006-08-18 05:17:52 +000020#include "clang/Lex/IdentifierTable.h"
Chris Lattnerd3e98952006-10-06 05:22:26 +000021#include "clang/Lex/Preprocessor.h"
Chris Lattnerc11438c2006-08-18 05:17:52 +000022using namespace llvm;
23using namespace clang;
24
Chris Lattnerc11438c2006-08-18 05:17:52 +000025//===----------------------------------------------------------------------===//
Chris Lattnereaafe1222006-11-10 05:17:58 +000026// Helper functions.
27//===----------------------------------------------------------------------===//
28
29void Sema::Diag(SourceLocation Loc, unsigned DiagID, const std::string &Msg) {
30 PP.Diag(Loc, DiagID, Msg);
31}
32
33