CBMC
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cpp_typecheck_linkage_spec.cpp
Go to the documentation of this file.
1/*******************************************************************\
2
3Module: C++ Language Type Checking
4
5Author: Daniel Kroening, kroening@cs.cmu.edu
6
7\*******************************************************************/
8
11
12#include "cpp_typecheck.h"
13
15{
17
19
20 // there is a linkage spec "C++", which we know as "cpp"
21 if(current_linkage_spec=="C++")
23
24 // do the declarations
25 for(cpp_linkage_spect::itemst::iterator
26 it=linkage_spec.items().begin();
27 it!=linkage_spec.items().end();
28 it++)
29 convert(*it);
30
31 // back to previous linkage spec
33}
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
Definition ai.h:562
const itemst & items() const
irep_idt current_linkage_spec
void convert(cpp_linkage_spect &)
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Definition dstring.h:38
const irep_idt & get(const irep_idt &name) const
Definition irep.cpp:44
C++ Language Type Checking.