Files
SourcetrailDB/examples/cpp_api_example
mlangkabel 3b76c403dc rename recordCommentLocation to recordAtomicSourceRange
This is done because the feature can be useful for all kind of multi-line symbols that should not be split being part of a code snippet.
2019-02-26 17:12:18 +01:00
..
2018-12-15 11:57:31 +01:00

C++ API Example

Requirements

  • CMake
  • C++ Compiler

Building

  • Run cmake with BUILD_EXAMPLES=ON
  • Build target cpp_api_example

Running from Command Line

Invoke binary located in the build directory:

$ cpp_api_example path/to/database_file.srctrldb path/to/examples/cpp_api_example/data/example.cpp

Running with Sourcetrail

Open cpp_api_example.srctrlprj located in the build directory with Sourcetrail and index the project.