rel. pron.
&
det.
used to emphasize a lack of restriction in referring to any thing, no matter what.
interrog. pron.
used for emphasis instead of ‘what’ in questions.
adv.
-
[with neg.]
at all; of any kind.
- informal no matter what happens.
exclam.
informal a response indicating a reluctance to discuss something, often implying indifference.
Usage
In the emphatic use (whatever was she thinking of?), it is acceptable to use either whatever or what ever. See usage at however.