# Code inspection: The CallerMemberNameAttribute will have no effect; it is overridden by the CallerFilePathAttribute

This inspection reports a parameter marked with both `[CallerMemberName]` and `[CallerFilePath]`. `[CallerFilePath]` overrides `[CallerMemberName]` on the same parameter, so the member name attribute has no effect and only makes the code misleading.

## Example

#### Reported

```csharp
using System.Runtime.CompilerServices;
void Log([CallerMemberName, CallerFilePath] string info = "")
{
}
```

#### Fixed code

```csharp
using System.Runtime.CompilerServices;
void Log([CallerFilePath] string info = "")
{
}
```

## How to fix

There is no dedicated quick-fix. The usual fix is to remove the overridden attribute.
