• Home
  • Raw
  • Download

Lines Matching +refs:clang +refs:format +refs:extract

244 .. c:macro:: PW_TOKENIZE_FORMAT_STRING(domain, mask, format, ...)
246 Tokenizes a format string and sets the ``_pw_tokenizer_token`` variable to the
256 Converts a series of arguments to a compact format that replaces the format
280 #define PW_LOG_TOKENIZED_ENCODE_MESSAGE(metadata, format, ...) \
283 PW_TOKENIZER_DEFAULT_DOMAIN, UINT32_MAX, format, __VA_ARGS__); \
334 #define LOG_INFO(format, ...) \
335 RecordLog(LogLevel_INFO, __FILE_NAME__, __LINE__, format, ##__VA_ARGS__)
337 void RecordLog(LogLevel level, const char* file, int line, const char* format,
346 va_start(args, format);
347 bytes += vsnprintf(&buffer[bytes], sizeof(buffer) - bytes, format, args);
361 #define LOG_INFO(format, ...) \
364 __FILE_NAME__ ":%d " format, \
375 Note that the ``__FILE_NAME__`` string is directly included in the log format
377 ``%d`` for the line number is added to the format string, so that changing the
613 CSV database format
615 The CSV database format has three columns: the token in hexadecimal, the removal
616 date (if any) in year-month-day format, and the string literal, surrounded by
631 Binary database format
633 The binary database format is comprised of a 16-byte header followed by a series
668 While pw_tokenizer doesn't specify a JSON database format, a token database can
677 used to extract tokens from compilation artifacts and manage database files.
766 A project might tokenize its log messages with the `Base64 format`_. Consider
798 This example uses the `Base64 format`_, which occupies about 4/3 (133%) as
799 much space as the default binary format when encoded. For projects that wish
836 The C++ detokenization library uses binary-format token databases (created with
837 ``database.py create --type binary``). Read a binary format database from a
883 Base64 format
891 The Base64 format is comprised of a ``$`` character followed by the
908 To encode with the Base64 format, add a call to
964 This tool can be used to extract argument information from an otherwise unusable
1055 encoded in the $-prefixed `Base64 format`_, then dispatched as normal log
1064 by adding ``"%d"`` to the format string and passing ``__LINE__``.
1128 clang does **not** have this issue! Use clang to avoid this.
1131 format strings so that the database tools can find them in ``.rodata``. Then, to
1182 prefixed Base64-encoded and sent as ``%s`` instead. See `Base64 format`_.
1188 Legacy tokenized string ELF format
1197 has several advantages over the legacy format:
1206 To migrate to the new format, all that is required is update the linker sections
1209 The Python tooling continues to support the legacy tokenized string ELF format.