Home | History | Annotate | Download | only in Sema

Lines Matching refs:Scope

1 //===- Scope.cpp - Lexical scope information --------------------*- C++ -*-===//
9 // This file implements the Scope class, which is used for recording
10 // information about a lexical scope.
14 #include "clang/Sema/Scope.h"
20 void Scope::setFlags(Scope *parent, unsigned flags) {
56 // If this scope is a function or contains breaks/continues, remember it.
70 // If this is a prototype scope, record that.
87 void Scope::Init(Scope *parent, unsigned flags) {
97 bool Scope::containedInPrototypeScope() const {
98 const Scope *S = this;
107 void Scope::AddFlags(unsigned FlagsToSet) {
109 "Unsupported scope flags");
121 void Scope::mergeNRVOIntoParent() {
136 LLVM_DUMP_METHOD void Scope::dump() const { dumpImpl(llvm::errs()); }
138 void Scope::dumpImpl(raw_ostream &OS) const {
182 assert(Flags == 0 && "Unknown scope flags");
187 if (const Scope *Parent = getParent())
188 OS << "Parent: (clang::Scope*)" << Parent << '\n';