clang API Documentation

Namespaces | Defines | Functions
Version.h File Reference
#include "llvm/ADT/StringRef.h"
#include "clang/Basic/Version.inc"
Include dependency graph for Version.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  clang

Defines

#define CLANG_MAKE_VERSION_STRING2(X)   #X
 Helper macro for CLANG_VERSION_STRING.
#define CLANG_MAKE_VERSION_STRING(X, Y)   CLANG_MAKE_VERSION_STRING2(X.Y)
 Helper macro for CLANG_VERSION_STRING.
#define CLANG_VERSION_STRING   CLANG_MAKE_VERSION_STRING(CLANG_VERSION_MAJOR,CLANG_VERSION_MINOR)
 A string that describes the Clang version number, e.g., "1.0".
#define CLANG_MAKE_VERSION_STRING2(X)   #X
#define CLANG_MAKE_VERSION_STRING(X, Y)   CLANG_MAKE_VERSION_STRING2(X.Y)
#define CLANG_VERSION_STRING   CLANG_MAKE_VERSION_STRING(CLANG_VERSION_MAJOR,CLANG_VERSION_MINOR)

Functions

std::string clang::getClangRepositoryPath ()
 Retrieves the repository path (e.g., Subversion path) that identifies the particular Clang branch, tag, or trunk from which this Clang was built.
std::string clang::getClangRevision ()
 Retrieves the repository revision number (or identifer) from which this Clang was built.
std::string clang::getClangFullRepositoryVersion ()
 Retrieves the full repository version that is an amalgamation of the information in getClangRepositoryPath() and getClangRevision().
std::string clang::getClangFullVersion ()
 Retrieves a string representing the complete clang version, which includes the clang version number, the repository version, and the vendor tag.
std::string clang::getClangFullCPPVersion ()
 Retrieves a string representing the complete clang version suitable for use in the CPP __VERSION__ macro, which includes the clang version number, the repository version, and the vendor tag.

Define Documentation

#define CLANG_MAKE_VERSION_STRING (   X,
 
)    CLANG_MAKE_VERSION_STRING2(X.Y)

Helper macro for CLANG_VERSION_STRING.

Definition at line 37 of file CheckerRegistry.h.

#define CLANG_MAKE_VERSION_STRING (   X,
 
)    CLANG_MAKE_VERSION_STRING2(X.Y)
#define CLANG_MAKE_VERSION_STRING2 (   X)    #X

Helper macro for CLANG_VERSION_STRING.

Definition at line 24 of file CheckerRegistry.h.

#define CLANG_MAKE_VERSION_STRING2 (   X)    #X
#define CLANG_VERSION_STRING   CLANG_MAKE_VERSION_STRING(CLANG_VERSION_MAJOR,CLANG_VERSION_MINOR)
#define CLANG_VERSION_STRING   CLANG_MAKE_VERSION_STRING(CLANG_VERSION_MAJOR,CLANG_VERSION_MINOR)