Although $\int_{a}^{b} f(x)$ may be poor notation, one may encounter $$ \int_{a}^{b} f $$
where the real interval $[a,b]$ is in the domain of $f$. This notation might be preferable since it's more concise, for one. A deeper reason is that it doesn't arbitrarily prefer a variable to represent $f$. $f$ can be defined as $f(x)$, or $f(t)$, or in many other ways, but the choice of $x$, $t$, etc. doesn't matter, except to suggest what the inputs to $f$ represent in your particular application of the integral.
The integral of $f$ over $[a,b]$ may also be written $$ \int_{[a,b]} f $$
which is a specific case of $$ \int_{\Omega} f $$
where $\Omega$ is again in the domain of $f$, but is also "sufficiently nice" to integrate over. An example is $\Omega = [0, 1] \times [0, 1]$, a unit square, in which case we might have $f : \Omega \rightarrow \mathbb{R}$ and the integral $\int_{\Omega} f$ is the signed volume "under" the surface $(\Omega, f(\Omega))$.