base: Fix include order in the inifile unit test.
authorGabe Black <gabeblack@google.com>
Thu, 29 Nov 2018 01:34:33 +0000 (17:34 -0800)
committerGabe Black <gabeblack@google.com>
Thu, 29 Nov 2018 02:51:11 +0000 (02:51 +0000)
Even though gtest.h is a C++ header, it looks like a C header which
makes the style check hook upset. Lets move it up so the hook doesn't
complain when the file is changed.

Change-Id: Ibcc2d0b7bf3b254c70e55b30379ebd4b70933c26
Reviewed-on: https://gem5-review.googlesource.com/c/14675
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>

src/base/inifiletest.cc

index d3319058087bcf4589fb80888d08276d300dd112..4235997f79400e4782e84b65ca5ba6a1aaeafeb8 100644 (file)
  *          Steve Reinhardt
  */
 
+#include <gtest/gtest.h>
+
 #include <fstream>
 #include <iostream>
 #include <string>
 #include <vector>
 
-#include <gtest/gtest.h>
-
 #include "base/inifile.hh"
 
 using namespace std;