Bug 227320 - Style incorrectly reports error Code inside a namespace should not be indented
Summary: Style incorrectly reports error Code inside a namespace should not be indented
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-06-23 14:41 PDT by Jean-Yves Avenard [:jya]
Modified: 2021-06-30 14:42 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Yves Avenard [:jya] 2021-06-23 14:41:38 PDT
In a constructor, if we use a method in a namespace like:

```
AudioSampleBufferCompressor::AudioSampleBufferCompressor()
    : m_serialDispatchQueue { WorkQueue::create("com.apple.AudioSampleBufferCompressor") }
    , m_lowWaterTime { PAL::CMTimeMakeWithSeconds(LOW_WATER_TIME_IN_SECONDS, 1000) }
{
}
```

Style EWS complains that:
Code inside a namespace should not be indented.  [whitespace/indent] [4] due to the PAL::CMTimeMakeWithSeconds 

The code above is perfectly valid.
Comment 1 Radar WebKit Bug Importer 2021-06-30 14:42:16 PDT
<rdar://problem/79986287>