• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..12-Dec-2023-

.clang-formatH A D12-Dec-2023239 1211

Android.bpH A D12-Dec-2023855 3935

Flags_test.cppH A D12-Dec-20237.2 KiB227176

NamedEnum_test.cppH A D12-Dec-20233 KiB10260

README.mdH A D12-Dec-20231.4 KiB4230

future_test.cppH A D12-Dec-20233.2 KiB10671

small_map_test.cppH A D12-Dec-20233.6 KiB13281

small_vector_test.cppH A D12-Dec-202312.5 KiB464319

static_vector_test.cppH A D12-Dec-202310.7 KiB400273

README.md

1# FTL
2
3FTL is a template library shared by SurfaceFlinger and InputFlinger, inspired by
4and supplementing the C++ Standard Library. The intent is to fill gaps for areas
5not (yet) covered—like cache-efficient data structures and lock-free concurrency
6primitives—and implement proposals that are missing or experimental in Android's
7libc++ branch. The design takes some liberties with standard compliance, notably
8assuming that exceptions are disabled.
9
10## Tests
11
12    atest ftl_test
13
14## Style
15
16- Based on [Google C++ Style](https://google.github.io/styleguide/cppguide.html).
17- Informed by [C++ Core Guidelines](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines).
18
19Naming conventions are as follows:
20
21- `PascalCase`
22    - Types and aliases, except standard interfaces.
23    - Template parameters, including non-type ones.
24- `snake_case`
25    - Variables, and data members with trailing underscore.
26    - Functions, free and member alike.
27    - Type traits, with standard `_t` and `_v` suffixes.
28- `kCamelCase`
29    - Enumerators and `constexpr` constants with static storage duration.
30- `MACRO_CASE`
31    - Macros, with `FTL_` prefix unless `#undef`ed.
32
33Template parameter packs are named with the following convention:
34
35    typename T, typename... Ts
36    typename Arg, typename... Args
37
38    std::size_t I, std::size_t... Is
39    std::size_t Size, std::size_t... Sizes
40
41The `details` namespace contains implementation details.
42