LLVM  8.0.1
Classes | Namespaces | Functions
Magic.h File Reference
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
#include <system_error>
Include dependency graph for Magic.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  llvm::file_magic
 file_magic - An "enum class" enumeration of file types based on magic (the first N bytes of the file). More...
 

Namespaces

 llvm
 This class represents lattice values for constants.
 

Functions

file_magic llvm::identify_magic (StringRef magic)
 Identify the type of a binary file based on how magical it is. More...
 
std::error_code llvm::identify_magic (const Twine &path, file_magic &result)
 Get and identify path's type based on its content. More...