Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"editor.formatOnSave": true,
"files.associations": {
".clang-format": "yaml",
"header-units.json": "jsonc",
"**/stl/inc/**": "cpp"
},
"files.eol": "\r\n",
Expand Down
1 change: 1 addition & 0 deletions stl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ set(HEADERS
${CMAKE_CURRENT_LIST_DIR}/inc/future
${CMAKE_CURRENT_LIST_DIR}/inc/hash_map
${CMAKE_CURRENT_LIST_DIR}/inc/hash_set
${CMAKE_CURRENT_LIST_DIR}/inc/header-units.json
${CMAKE_CURRENT_LIST_DIR}/inc/initializer_list
${CMAKE_CURRENT_LIST_DIR}/inc/iomanip
${CMAKE_CURRENT_LIST_DIR}/inc/ios
Expand Down
149 changes: 149 additions & 0 deletions stl/inc/header-units.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
// Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

{
"Version": "1.0",
"BuildAsHeaderUnits": [
// "__msvc_all_public_headers.hpp", // for testing, not production
"__msvc_system_error_abi.hpp",
"algorithm",
"any",
"array",
"atomic",
"barrier",
"bit",
"bitset",
// "cassert", // design is permanently incompatible with header units
// "ccomplex", // removed in C++20
"cctype",
"cerrno",
"cfenv",
"cfloat",
"charconv",
"chrono",
"cinttypes",
// "ciso646", // removed in C++20
"climits",
"clocale",
"cmath",
"codecvt",
"compare",
"complex",
"concepts",
"condition_variable",
"coroutine",
"csetjmp",
"csignal",
// "cstdalign", // removed in C++20
"cstdarg",
// "cstdbool", // removed in C++20
"cstddef",
"cstdint",
"cstdio",
"cstdlib",
"cstring",
// "ctgmath", // removed in C++20
"ctime",
"cuchar",
"cwchar",
"cwctype",
"deque",
"exception",
"execution",
"filesystem",
"forward_list",
"fstream",
"functional",
"future",
// "hash_map", // non-Standard, will be removed soon
// "hash_set", // non-Standard, will be removed soon
"initializer_list",
"iomanip",
"ios",
"iosfwd",
"iostream",
"iso646.h",
"istream",
"iterator",
"latch",
"limits",
"list",
"locale",
"map",
"memory",
"memory_resource",
"mutex",
"new",
"numbers",
"numeric",
"optional",
"ostream",
"queue",
"random",
"ranges",
"ratio",
"regex",
"scoped_allocator",
"semaphore",
"set",
"shared_mutex",
"span",
"sstream",
"stack",
"stdexcept",
"stop_token",
"streambuf",
"string",
"string_view",
"strstream",
"system_error",
"thread",
"tuple",
"type_traits",
"typeindex",
"typeinfo",
"unordered_map",
"unordered_set",
"use_ansi.h",
"utility",
"valarray",
"variant",
"vector",
"version",
"xatomic.h",
"xatomic_wait.h",
"xbit_ops.h",
"xcall_once.h",
"xcharconv.h",
"xcharconv_ryu.h",
"xcharconv_ryu_tables.h",
"xerrc.h",
"xfacet",
"xfilesystem_abi.h",
"xhash",
"xiosbase",
// "xkeycheck.h", // internal header, provides no machinery, scans for macroized keywords only
"xlocale",
"xlocbuf",
"xlocinfo",
"xlocinfo.h",
"xlocmes",
"xlocmon",
"xlocnum",
"xloctime",
"xmemory",
"xnode_handle.h",
"xpolymorphic_allocator.h",
"xsmf_control.h",
"xstddef",
"xstring",
"xthreads.h",
"xtimec.h",
"xtr1common",
"xtree",
"xutility",
"ymath.h",
"yvals.h",
"yvals_core.h"
]
}