Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c79d9e30 authored by Elliott Hughes's avatar Elliott Hughes Committed by Tomasz Wasilczyk
Browse files

Bump the default from gnu++17 to gnu++20.

We should update gnu++2a to gnu++2b too, but not in this CL.

Bug: 311052584
Test: treehugger
Test: m checkbuild
Change-Id: I3637444d74868b3a29b425fd749ecbbe1a45fbf7
parent 2f634573
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4818,7 +4818,7 @@ func TestIncludeDirectoryOrdering(t *testing.T) {

	cflags := []string{"-Werror", "-std=candcpp"}
	cstd := []string{"-std=gnu17", "-std=conly"}
	cppstd := []string{"-std=gnu++17", "-std=cpp", "-fno-rtti"}
	cppstd := []string{"-std=gnu++20", "-std=cpp", "-fno-rtti"}

	lastIncludes := []string{
		"out/soong/ndk/sysroot/usr/include",
+1 −1
Original line number Diff line number Diff line
@@ -357,7 +357,7 @@ var (
	}

	CStdVersion               = "gnu17"
	CppStdVersion             = "gnu++17"
	CppStdVersion             = "gnu++20"
	ExperimentalCStdVersion   = "gnu2x"
	ExperimentalCppStdVersion = "gnu++2a"