bneradt commented on code in PR #13335:
URL: https://github.com/apache/trafficserver/pull/13335#discussion_r3584234770


##########
.github/copilot-instructions.md:
##########
@@ -74,7 +74,11 @@ void function() {
 - Classes: `CamelCase` → `HttpSM`, `NetVConnection`, `CacheProcessor`
 - Functions/variables: `snake_case` → `handle_request()`, `server_port`, 
`cache_key`
 - Constants/macros: `UPPER_CASE` → `HTTP_STATUS_OK`, `MAX_BUFFER_SIZE`
-- Member variables: `snake_case` with no prefix → `connection_count`, 
`buffer_size`
+- Private member variables use both `_` and `m_` prefixes in the source code;
+  be consistent with the surrounding code. For new files, prefer the `_` prefix
+  because that reflects the community consensus.
+- Boolean variables and functions returning boolean values are named as
+  predicates: use `was_modified` rather than `modified`.

Review Comment:
   > private members commonly use a trailing underscore suffix (e.g. state_, 
name_) 
   
   So you say...I tend to see more `_` and `m_` prefixed variables. But maybe 
that's just the code I've worked with more. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to