lib/sourcelocation.h: add missing <cstdint> include (#4474)

Without the change build on upcoming gcc-13 fails as:

    In file included from lib/symboldatabase.h:28,
                     from lib/astutils.h:36,
                     from test/testastutils.cpp:20:
    lib/sourcelocation.h:52:10: error: 'uint_least32_t' in namespace 'std' does not name a type
       52 |     std::uint_least32_t m_line = 0;
          |          ^~~~~~~~~~~~~~
This commit is contained in:
Sergei Trofimovich 2022-09-16 20:36:37 +01:00 committed by GitHub
parent 21db0b98a6
commit 3b840e7ff1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ using SourceLocation = std::source_location;
#include <experimental/source_location>
using SourceLocation = std::experimental::source_location;
#else
#include <cstdint>
struct SourceLocation {
static SourceLocation current() {
return SourceLocation();