~ubuntu-branches/ubuntu/trusty/c++-annotations/trusty

« back to all changes in this revision

Viewing changes to yo/concrete/lexer/scanner/throwoncircular.cc

  • Committer: Package Import Robot
  • Author(s): tony mancill, Frank B. Brokken, tony mancill
  • Date: 2012-02-28 00:50:21 UTC
  • mfrom: (1.1.19)
  • Revision ID: package-import@ubuntu.com-20120228005021-sz7nnodntkvgh7qf
Tags: 9.2.1-1
[ Frank B. Brokken ]
* New upstream release (using flexc++, reauthored polymorphic semantic
  values and unrestricted unions). Upstream release 9.2.0 is implied by
  this release.

[ tony mancill ]
* Set Standards-Version to 3.9.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
    #include "scanner.ih"
2
 
 
3
 
    inline bool operator==(Scanner::FileInfo const &fi, string const &name)
4
 
    {
5
 
        return fi.d_name == name;
6
 
    }
7
 
 
8
 
    void Scanner::throwOnCircularInclusion()
9
 
    {
10
 
        vector<FileInfo>::iterator
11
 
            it = find(d_fileInfo.begin(), d_fileInfo.end(), d_nextSource);
12
 
 
13
 
        if (it != d_fileInfo.end())
14
 
            throw circularInclusion;
15
 
    }