clang  3.9.0
Namespaces | Macros | Functions
Version.h File Reference

Defines version macros and version-related utility functions for Clang. More...

#include "clang/Basic/Version.inc"
#include "llvm/ADT/StringRef.h"
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

 clang
 Dataflow Directional Tag Classes.
 

Macros

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

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. More...
 
std::string clang::getLLVMRepositoryPath ()
 Retrieves the repository path from which LLVM was built. More...
 
std::string clang::getClangRevision ()
 Retrieves the repository revision number (or identifer) from which this Clang was built. More...
 
std::string clang::getLLVMRevision ()
 Retrieves the repository revision number (or identifer) from which LLVM was built. More...
 
std::string clang::getClangFullRepositoryVersion ()
 Retrieves the full repository version that is an amalgamation of the information in getClangRepositoryPath() and getClangRevision(). More...
 
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. More...
 
std::string clang::getClangToolFullVersion (llvm::StringRef ToolName)
 Like getClangFullVersion(), but with a custom tool name. More...
 
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. More...
 

Detailed Description

Defines version macros and version-related utility functions for Clang.

Definition in file Version.h.

Macro Definition Documentation

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

Helper macro for CLANG_VERSION_STRING.

Definition at line 27 of file Version.h.

#define CLANG_MAKE_VERSION_STRING2 (   X)    #X

Helper macro for CLANG_VERSION_STRING.

Definition at line 23 of file Version.h.

#define CLANG_VERSION_STRING
Value:
CLANG_MAKE_VERSION_STRING(CLANG_VERSION_MAJOR,CLANG_VERSION_MINOR, \
CLANG_VERSION_PATCHLEVEL)
#define CLANG_MAKE_VERSION_STRING(X, Y, Z)
Helper macro for CLANG_VERSION_STRING.
Definition: Version.h:27

A string that describes the Clang version number, e.g., "1.0".

Definition at line 30 of file Version.h.

Referenced by clang::driver::Driver::Driver(), clang::CompilerInstance::ExecuteAction(), clang::getClangFullCPPVersion(), clang::getClangToolFullVersion(), clang::CompilerInvocation::GetResourcesPath(), and InitializePredefinedMacros().