Files
gem5/util
Daniel R. Carvalho d67f28473a util: Revamp opening brace verifier
1 - Rename the verifier from ClassBraces to
StructureBraces.

2 - Add support for anonymous structures. This
includes anonymous classes, anonymous structs,
anonymous enums and anonymous unions. e.g.:

  struct {

3 - Make the verifier not trigger error for
structures that do not currently abide to gem5's
coding style and use non-uppercase characters as
their first character. e.g.:

  struct test {

4 - Improve handling of nested structures. e.g.:

  struct { enum { VAR, VAR2

becomes

  struct
  {
      enum {
          VAR, VAR2

But the verifier will fail for declarations like:

  struct { int a; }; struct {

which becomes

  struct
  {
      int a; struct {

However, this later issue is not a desired coding
style, so it should be handled by another kind of
verifier if desired.

Change-Id: I8f0536dcc2c164e2d3d2a2e5b7a35d5ee351a814
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/43365
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Gabe Black <gabe.black@gmail.com>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
2021-04-07 01:37:12 +00:00
..
2020-11-27 15:17:30 +00:00
2020-11-27 15:17:30 +00:00
2020-11-27 15:17:30 +00:00
2020-11-27 15:17:30 +00:00
2020-11-27 15:17:30 +00:00
2021-04-07 01:37:12 +00:00
2020-12-09 12:05:58 +00:00
2020-11-27 15:17:30 +00:00
2020-11-27 15:17:30 +00:00
2020-11-27 15:17:30 +00:00
2021-03-31 08:43:39 +00:00
2020-11-27 15:17:30 +00:00
2020-11-27 15:17:30 +00:00
2020-11-27 15:17:30 +00:00
2020-11-27 15:17:30 +00:00
2020-11-27 15:17:30 +00:00
2020-11-27 15:17:30 +00:00
2020-11-27 15:17:30 +00:00
2020-11-27 15:17:30 +00:00