Home
last modified time | relevance | path

Searched refs:getInvalidBOM (Results 1 – 4 of 4) sorted by relevance

/external/llvm-project/clang/unittests/Basic/
DSourceManagerTest.cpp205 TEST_F(SourceManagerTest, getInvalidBOM) { in TEST_F() argument
206 ASSERT_EQ(SrcMgr::ContentCache::getInvalidBOM(""), nullptr); in TEST_F()
207 ASSERT_EQ(SrcMgr::ContentCache::getInvalidBOM("\x00\x00\x00"), nullptr); in TEST_F()
208 ASSERT_EQ(SrcMgr::ContentCache::getInvalidBOM("\xFF\xFF\xFF"), nullptr); in TEST_F()
209 ASSERT_EQ(SrcMgr::ContentCache::getInvalidBOM("#include <iostream>"), in TEST_F()
212 ASSERT_EQ(StringRef(SrcMgr::ContentCache::getInvalidBOM( in TEST_F()
215 ASSERT_EQ(StringRef(SrcMgr::ContentCache::getInvalidBOM( in TEST_F()
218 ASSERT_EQ(StringRef(SrcMgr::ContentCache::getInvalidBOM( in TEST_F()
221 ASSERT_EQ(StringRef(SrcMgr::ContentCache::getInvalidBOM( in TEST_F()
224 ASSERT_EQ(StringRef(SrcMgr::ContentCache::getInvalidBOM( in TEST_F()
[all …]
/external/llvm-project/clang/tools/clang-format/
DClangFormat.cpp372 const char *InvalidBOM = SrcMgr::ContentCache::getInvalidBOM(BufStr); in format()
/external/llvm-project/clang/lib/Basic/
DSourceManager.cpp79 const char *ContentCache::getInvalidBOM(StringRef BufStr) { in getInvalidBOM() function in ContentCache
173 const char *InvalidBOM = getInvalidBOM(BufStr); in getBufferOrNone()
/external/llvm-project/clang/include/clang/Basic/
DSourceManager.h261 static const char *getInvalidBOM(StringRef BufStr);