CodeSonar C++ API
[For improved navigation, enable JavaScript.]
cs_sfileinst.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2023, an unpublished work by CodeSecure, Inc.
3  * ALL RIGHTS RESERVED
4  *
5  * Copyright (c) 2013-2023, an unpublished work by GrammaTech, Inc.
6  * ALL RIGHTS RESERVED
7  *
8  * This software is furnished under a license and may be used and
9  * copied only in accordance with the terms of such license and the
10  * inclusion of the above copyright notice. This software or any
11  * other copies thereof may not be provided or otherwise made
12  * available to any other person. Title to and ownership of the
13  * software is retained by CodeSecure, Inc.
14  */
15 
16 #ifndef CS_SFILEINST_HPP
17 #define CS_SFILEINST_HPP
18 
19 #include "cs_sfileinst_decl.hpp"
20 #include "cs_sfile_decl.hpp"
21 
24 namespace cs{
25  inline sfile sfileinst::get_sfile() const
26  {
27  cs_sf rv;
28  check(cs_sfid_sf(inner, &rv));
29  return sfile::;
30  }
31 }
32 
33 #endif /* CS_SFILEINST_HPP */
Namespace for CodeSonar/CodeSurfer API.
Definition: cs_ast.hpp:33
sfile get_sfile() const
Get the source file corresponding to a source file instance.
Definition: cs_sfileinst.hpp:25
A source file.
Definition: cs_sfile_decl.hpp:98